--- nono/debugger/memdump.cpp 2026/04/29 17:05:24 1.1.1.3 +++ nono/debugger/memdump.cpp 2026/04/29 17:05:28 1.1.1.4 @@ -21,14 +21,14 @@ // // コンストラクタ -Memdump::Memdump(int objid_) +Memdump::Memdump(uint objid_) : inherited(objid_) { // ログは不要 ClearAlias(); // 初期値 - saddr = busaddr::Read | busaddr::S | busaddr::Physical; + saddr = BusAddr::SRead | BusAddr::Physical; SetFormat(Word); } @@ -88,7 +88,7 @@ Memdump::SetAddr(busaddr saddr_) void Memdump::SetAddr(uint32 laddr_) { - saddr.SetAddr(laddr_); + saddr.ChangeAddr(laddr_); MaskAddr(); } @@ -157,7 +157,7 @@ Memdump::Peek(uint32 paddr, int bytes) c uint32 data = 0; while (--bytes >= 0) { - busdata bd = bus->Peek8(paddr++); + busdata bd = bus->Peek1(paddr++); if (__predict_false(bd.IsBusErr())) { return bd; } @@ -174,7 +174,7 @@ Memdump::Poke(uint32 paddr, uint32 data, { while (--bytes >= 0) { uint32 d = data >> (bytes * 8); - if (bus->Poke8(paddr++, d & 0xff) == false) { + if (bus->Poke1(paddr++, d & 0xff) == false) { return false; } } @@ -186,7 +186,7 @@ Memdump::Poke(uint32 paddr, uint32 data, bool Memdump::CanPoke(uint32 paddr) const { - return bus->Poke8(paddr, -1); + return bus->Poke1(paddr, -1); } // コンソールに出力。 @@ -274,7 +274,7 @@ Memdump::Read(DebuggerMemoryStream& mem, std::vector vec(bytes); for (int i = 0; i < bytes; i++) { - vec[i] = mem.Read8(); + vec[i] = mem.Read1(); } return vec; @@ -417,7 +417,7 @@ Memdump::dtname[4] = { // // コンストラクタ -MemdumpMonitor::MemdumpMonitor(int objid_, int monid_) +MemdumpMonitor::MemdumpMonitor(uint objid_, int monid_) : inherited(objid_) { monitor.func = ToMonitorCallback(&MemdumpMonitor::MonitorUpdate); @@ -607,7 +607,7 @@ MemdumpMonitor::MonitorUpdateDisasm(Text TA attr; // PC のいる行をボールドに - if (__predict_false((uint32)mem.laddr == md->GetPC())) { + if (__predict_false(mem.laddr.Addr() == md->GetPC())) { attr = TA::Em; } else { attr = TA::Normal;