mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-07-05 15:28:59 +00:00
Work around broken assembly for PLP instruction on Mac
This commit is contained in:
parent
a37ed6cd98
commit
f11b6948bb
@ -1536,7 +1536,12 @@ E(op_PLA) // 0x68
|
|||||||
E(op_PLP) // 0x28
|
E(op_PLP) // 0x28
|
||||||
Pop(%al)
|
Pop(%al)
|
||||||
SNX_PROLOGUE(cpu65_flags_decode)
|
SNX_PROLOGUE(cpu65_flags_decode)
|
||||||
|
#ifdef APPLE_ASSEMBLER_IS_BROKEN
|
||||||
|
movb SNX(cpu65_flags_decode,_XAX,1), %al
|
||||||
|
movb %al, F_Reg
|
||||||
|
#else
|
||||||
movb SNX(cpu65_flags_decode,_XAX,1), F_Reg
|
movb SNX(cpu65_flags_decode,_XAX,1), F_Reg
|
||||||
|
#endif
|
||||||
orb $(B_Flag|X_Flag), F_Reg
|
orb $(B_Flag|X_Flag), F_Reg
|
||||||
Continue
|
Continue
|
||||||
|
|
||||||
@ -2207,7 +2212,7 @@ E(cpu65_run)
|
|||||||
SNX_PROLOGUE(cpu65_flags_decode)
|
SNX_PROLOGUE(cpu65_flags_decode)
|
||||||
#ifdef APPLE_ASSEMBLER_IS_BROKEN
|
#ifdef APPLE_ASSEMBLER_IS_BROKEN
|
||||||
movb SNX(cpu65_flags_decode,_XAX,1), %al
|
movb SNX(cpu65_flags_decode,_XAX,1), %al
|
||||||
movb %al, %ch
|
movb %al, F_Reg
|
||||||
#else
|
#else
|
||||||
movb SNX(cpu65_flags_decode,_XAX,1), F_Reg
|
movb SNX(cpu65_flags_decode,_XAX,1), F_Reg
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user