all repos — mgba @ e4a17e12f40d2778bb91998ecf93ad5ae39594e3

mGBA Game Boy Advance Emulator

LR35902: Fix ADD HL instructions
Jeffrey Pfau jeffrey@endrift.com
Tue, 19 Jan 2016 22:08:13 -0800
commit

e4a17e12f40d2778bb91998ecf93ad5ae39594e3

parent

3158db06c2c68a5b53a5b0d2ea8fe9375ec74522

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

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

@@ -453,7 +453,7 @@ DEFINE_INSTRUCTION_LR35902(ADDHL_ ## REG, \

int diff = L + cpu->l; \ cpu->l = diff; \ cpu->f.c = diff >= 0x100; \ - cpu->executionState = LR35902_CORE_STALL; \ + cpu->executionState = LR35902_CORE_OP2; \ cpu->instruction = _LR35902InstructionADDHL_ ## REG ## Finish;) DEFINE_ADD_HL_INSTRUCTION_LR35902(BC, cpu->c, cpu->b);