LR35902: Fix LD x, (HL) disassembly (fixes #513)
Vicki Pfau vi@endrift.com
Thu, 02 Feb 2017 20:04:45 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/lr35902/decoder.c
→
src/lr35902/decoder.c
@@ -52,7 +52,7 @@ info->op2.reg = LR35902_REG_L)
#define DEFINE_LD_DECODER_LR35902_MEM(NAME, REG) \ DEFINE_DECODER_LR35902(LD ## NAME ## _ ## REG, info->mnemonic = LR35902_MN_LD; \ - info->op1.reg = LR35902_REG_ ## A; \ + info->op1.reg = LR35902_REG_ ## NAME; \ info->op2.reg = LR35902_REG_ ## REG; \ info->op2.flags = LR35902_OP_FLAG_MEMORY;)