From 34b90477ce7e9055eb010e3a6e36ed97822dca0b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 20 Jan 2016 21:07:51 -0800 Subject: [PATCH] LR35902: Fix LD (HL) instructions --- src/lr35902/isa-lr35902.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lr35902/isa-lr35902.c b/src/lr35902/isa-lr35902.c index 99db5a713..5f8022c33 100644 --- a/src/lr35902/isa-lr35902.c +++ b/src/lr35902/isa-lr35902.c @@ -189,8 +189,9 @@ DEFINE_CONDITIONAL_INSTRUCTION_LR35902(RET) #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, \