mirror of https://github.com/mgba-emu/mgba.git
LR35902: Fix LD (HL) instructions
This commit is contained in:
parent
2322e942c4
commit
34b90477ce
|
@ -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, \
|
||||||
|
|
Loading…
Reference in New Issue