--- nono/m680x0/testdis.cpp 2026/04/29 17:04:34 1.1.1.3 +++ nono/m680x0/testdis.cpp 2026/04/29 17:04:40 1.1.1.4 @@ -830,12 +830,19 @@ static uint8 mem[1024]; static int failed; uint64 -vm_phys_peek_8(uint32 addr) +DebuggerMD::PeekFetch(saddr_t laddr) { + uint32 addr; + uint32 data; + + addr = laddr.addr; if (addr >= sizeof(mem)) { abort(); } - return mem[addr ^ 1]; + // XXX endian + data = mem[(addr ) ^ 1] << 8; + data |= mem[(addr + 1) ^ 1]; + return data; } // リンカを通すためのダミー