BRK instruction adjustment

* Changes from AppleWin ... set Break and Xtra for pushed flags
    * Late set Interrupt flag for current flags (should be unchanged)
This commit is contained in:
Aaron Culliney 2013-11-05 21:45:55 -08:00
parent c39bea9580
commit 1eb8f759d7

View File

@ -830,11 +830,12 @@ op_BRK:
movw PC_Reg, %ax
Push(%ah)
Push(%al)
orb $(B_Flag|X_Flag), F_Reg
xorl %eax,%eax
movb F_Reg, %al
orb $I_Flag, F_Reg
movb SN(cpu65_flags_encode)(,%eax,1), %al
Push(%al)
orb $I_Flag, F_Reg
movw $0xFFFE, EffectiveAddr
GetFromEA_W
movw %ax, PC_Reg