LR35902: Fix LD (HL) instructions

This commit is contained in:
Jeffrey Pfau 2016-01-20 21:07:51 -08:00
parent 2322e942c4
commit 34b90477ce
1 changed files with 2 additions and 1 deletions

View File

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