--- nono/vm/pedec.cpp 2026/04/29 17:04:45 1.1 +++ nono/vm/pedec.cpp 2026/04/29 17:04:55 1.1.1.3 @@ -11,9 +11,8 @@ std::unique_ptr gPEDEC; PEDECDevice::PEDECDevice() + : inherited("PEDEC") { - logname = "pedec"; - devname = "PEDEC"; devaddr = baseaddr; devlen = 0x2000; } @@ -31,9 +30,9 @@ PEDECDevice::ResetHard() } uint64 -PEDECDevice::Read(uint32 addr) +PEDECDevice::Read(uint32 offset) { - switch (addr) { + switch (offset) { case 0: // $E9C001 割り込みステータス return GetStat(); @@ -47,9 +46,9 @@ PEDECDevice::Read(uint32 addr) } uint64 -PEDECDevice::Write(uint32 addr, uint32 data) +PEDECDevice::Write(uint32 offset, uint32 data) { - switch (addr) { + switch (offset) { case 0: // $E9C001 割り込みマスク int_enabled = IntmapSPC; int_enabled |= (data & 0x08) ? IntmapHDD : 0; @@ -75,9 +74,9 @@ PEDECDevice::Write(uint32 addr, uint32 d } uint64 -PEDECDevice::Peek(uint32 addr) +PEDECDevice::Peek(uint32 offset) { - switch (addr) { + switch (offset) { case 0: return GetStat();