From aaec68ee4896fd316660088a3c2c02c7bd3b7241 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 2 Feb 2017 20:04:45 -0800 Subject: [PATCH] LR35902: Fix LD x, (HL) disassembly (fixes #513) --- src/lr35902/decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lr35902/decoder.c b/src/lr35902/decoder.c index 641af7804..6abefc6cc 100644 --- a/src/lr35902/decoder.c +++ b/src/lr35902/decoder.c @@ -52,7 +52,7 @@ DEFINE_DECODER_LR35902(NOP, info->mnemonic = LR35902_MN_NOP;) #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;)