LR35902: Popping AF should clear unused F bits
Jeffrey Pfau jeffrey@endrift.com
Wed, 20 Jan 2016 22:01:16 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/lr35902/isa-lr35902.c
→
src/lr35902/isa-lr35902.c
@@ -592,6 +592,7 @@
#define DEFINE_POPPUSH_INSTRUCTION_LR35902(REG, HH, H, L) \ DEFINE_INSTRUCTION_LR35902(POP ## REG ## Delay, \ cpu-> L = cpu->bus; \ + cpu->f.packed &= 0xF0; \ cpu->index = cpu->sp; \ ++cpu->sp; \ cpu->instruction = _LR35902InstructionLD ## HH ## _Bus; \