LR35902: Popping AF should clear unused F bits

This commit is contained in:
Jeffrey Pfau 2016-01-20 22:01:16 -08:00
parent 9140018b85
commit 7685bc8b00
1 changed files with 1 additions and 0 deletions

View File

@ -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; \