--- nono/vm/sram.cpp 2026/04/29 17:04:36 1.1.1.4 +++ nono/vm/sram.cpp 2026/04/29 17:04:59 1.1.1.8 @@ -6,7 +6,6 @@ #include "sram.h" #include "mainapp.h" -#include "mystring.h" // // SRAM @@ -18,9 +17,8 @@ std::unique_ptr gSRAM; SRAMDevice::SRAMDevice() + : inherited("SRAM") { - logname = "sram"; - devname = "SRAM"; devaddr = baseaddr; devlen = 0x4000; } @@ -43,6 +41,13 @@ SRAMDevice::Init() return true; } +void +SRAMDevice::ResetHard() +{ + // XXX 未調査 + writeable = false; +} + // アドレスデコーダ inline uint64 SRAMDevice::Decoder(uint32 addr) const @@ -60,7 +65,7 @@ SRAMDevice::Read8(uint32 addr) uint32 data; // ホストファイル起動モードなら起動アドレスとして Pluto-X を見せる。 - if (gMainApp.host_file) { + if (gMainApp.exec_file) { data = PeekHostBoot(offset); if ((int32)data >= 0) { if ((offset & 1) == 0) { @@ -83,7 +88,7 @@ SRAMDevice::Read16(uint32 addr) uint32 data; // ホストファイル起動モードなら起動アドレスとして Pluto-X を見せる。 - if (gMainApp.host_file) { + if (gMainApp.exec_file) { data = PeekHostBoot(offset); if ((int32)data >= 0) { return data; @@ -132,7 +137,7 @@ SRAMDevice::Peek8(uint32 addr) uint32 offset = Decoder(addr); // ホストファイル起動モードなら起動アドレスとして Pluto-X を見せる。 - if (gMainApp.host_file) { + if (gMainApp.exec_file) { uint32 data = PeekHostBoot(offset); if ((int32)data >= 0) { if ((offset & 1) == 0) {