mirror of https://github.com/mgba-emu/mgba.git
LR35902: Popping AF should clear unused F bits
This commit is contained in:
parent
9140018b85
commit
7685bc8b00
|
@ -592,6 +592,7 @@ DEFINE_INSTRUCTION_LR35902(CPL_,
|
|||
#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; \
|
||||
|
|
Loading…
Reference in New Issue