From e284a059a2e4ae84ee10c2a7f1b78d00420bf41b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 20 Jan 2016 21:51:18 -0800 Subject: [PATCH] LR35902: Fix RES/SET/BIT HL --- src/lr35902/isa-lr35902.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lr35902/isa-lr35902.c b/src/lr35902/isa-lr35902.c index 5f8022c33..f768734cf 100644 --- a/src/lr35902/isa-lr35902.c +++ b/src/lr35902/isa-lr35902.c @@ -632,7 +632,7 @@ DEFINE_POPPUSH_INSTRUCTION_LR35902(AF, A, a, f.packed); uint8_t reg = cpu->bus; \ BODY; \ cpu->bus = reg; \ - cpu->executionState = LR35902_CORE_MEMORY_LOAD; \ + cpu->executionState = LR35902_CORE_MEMORY_STORE; \ cpu->instruction = _LR35902InstructionNOP;) \ DEFINE_INSTRUCTION_LR35902(NAME ## HL, \ cpu->index = LR35902ReadHL(cpu); \