From c971ff47ccf69074daa18cda4aa9227f3c040036 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 25 Jun 2024 21:23:53 -0500 Subject: [PATCH] disasm: ld a, [c] => ld a, [ff00+c] --- src/cpu/disasm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"),