diff --git a/src/cpu/disasm.rs b/src/cpu/disasm.rs index c7c0d95..4bc9071 100644 --- a/src/cpu/disasm.rs +++ b/src/cpu/disasm.rs @@ -459,8 +459,8 @@ mod disp { Insn::LdImm16(r16) => write!(f, "ld\t{r16}, #u16"), Insn::LdInd(src) => write!(f, "ld\ta, {src}"), Insn::StInd(dst) => write!(f, "ld\t{dst}, a"), - Insn::LdC => write!(f, "ld\ta, [c]"), - Insn::StC => write!(f, "ld\t[c], a"), + Insn::LdC => write!(f, "ld\ta, [0xff00 + c]"), + Insn::StC => write!(f, "ld\t[0xff00 + c], a"), Insn::LdAbs => write!(f, "ld\ta, [#u16]"), Insn::StAbs => write!(f, "ld\t[#u16], a"), Insn::StSpAbs => write!(f, "ld\t[#u16], sp"),