Always set the UNUSED and BREAK flags after execution.

This change simply replicates the behavior demonstrated in AppleWin.
This commit is contained in:
Peter Evans 2018-04-13 16:17:13 -05:00
parent 5730e5e446
commit ebb5f068fd
1 changed files with 2 additions and 0 deletions

View File

@ -367,6 +367,8 @@ mos6502_execute(mos6502 *cpu)
cpu->last_addr = cpu->eff_addr;
cpu->last_operand = operand;
cpu->P |= MOS_UNUSED | MOS_BREAK;
// Ok -- we're done! This wasn't so hard, was it?
return;
}