mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-12 06:29:58 +00:00
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:
parent
c39bea9580
commit
1eb8f759d7
@ -830,11 +830,12 @@ op_BRK:
|
|||||||
movw PC_Reg, %ax
|
movw PC_Reg, %ax
|
||||||
Push(%ah)
|
Push(%ah)
|
||||||
Push(%al)
|
Push(%al)
|
||||||
|
orb $(B_Flag|X_Flag), F_Reg
|
||||||
xorl %eax,%eax
|
xorl %eax,%eax
|
||||||
movb F_Reg, %al
|
movb F_Reg, %al
|
||||||
orb $I_Flag, F_Reg
|
|
||||||
movb SN(cpu65_flags_encode)(,%eax,1), %al
|
movb SN(cpu65_flags_encode)(,%eax,1), %al
|
||||||
Push(%al)
|
Push(%al)
|
||||||
|
orb $I_Flag, F_Reg
|
||||||
movw $0xFFFE, EffectiveAddr
|
movw $0xFFFE, EffectiveAddr
|
||||||
GetFromEA_W
|
GetFromEA_W
|
||||||
movw %ax, PC_Reg
|
movw %ax, PC_Reg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user