all repos — mgba @ aaec68ee4896fd316660088a3c2c02c7bd3b7241

mGBA Game Boy Advance Emulator

LR35902: Fix LD x, (HL) disassembly (fixes #513)
Vicki Pfau vi@endrift.com
Thu, 02 Feb 2017 20:04:45 -0800
commit

aaec68ee4896fd316660088a3c2c02c7bd3b7241

parent

e25db55ac5ca541039d441a45a8ca7c21e5f38a5

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/lr35902/decoder.csrc/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;)