all repos — mgba @ 7685bc8b00238224e2af7aa1346f289464c2d9f3

mGBA Game Boy Advance Emulator

LR35902: Popping AF should clear unused F bits
Jeffrey Pfau jeffrey@endrift.com
Wed, 20 Jan 2016 22:01:16 -0800
commit

7685bc8b00238224e2af7aa1346f289464c2d9f3

parent

9140018b85a331ee8af35ea004f282922a8045e6

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

jump to
M src/lr35902/isa-lr35902.csrc/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; \