all repos — mgba @ 34b90477ce7e9055eb010e3a6e36ed97822dca0b

mGBA Game Boy Advance Emulator

LR35902: Fix LD (HL) instructions
Jeffrey Pfau jeffrey@endrift.com
Wed, 20 Jan 2016 21:07:51 -0800
commit

34b90477ce7e9055eb010e3a6e36ed97822dca0b

parent

2322e942c4935435ab1ba6fd09e1600f3da18616

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

jump to
M src/lr35902/isa-lr35902.csrc/lr35902/isa-lr35902.c

@@ -189,8 +189,9 @@

#define DEFINE_LDHL__INSTRUCTION_LR35902(NAME, OPERAND) \ DEFINE_INSTRUCTION_LR35902(LDHL_ ## NAME, \ cpu->bus = OPERAND; \ + cpu->index = LR35902ReadHL(cpu); \ cpu->executionState = LR35902_CORE_MEMORY_STORE; \ - cpu->instruction = _LR35902InstructionLDHL_Bus;) + cpu->instruction = _LR35902InstructionNOP;) #define DEFINE_LDA__INSTRUCTION_LR35902(NAME, OPERAND) \ DEFINE_INSTRUCTION_LR35902(LDA_ ## NAME, \