mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 23:29:43 +00:00
fix i386 variant of op_SBC_dec (now re-passes tests on x86 Android)
This commit is contained in:
parent
5211722d63
commit
f872e0c05c
@ -1713,7 +1713,8 @@ ENTRY(op_SBC_dec)
|
||||
incb SYM(cpu65_opcycles) // +1 cycle
|
||||
GetFromEA_B
|
||||
DebugBCDCheck
|
||||
btc $C_Flag_Bit, AF_Reg_X
|
||||
bt $C_Flag_Bit, AF_Reg_X
|
||||
cmc
|
||||
xchgb A_Reg, %al
|
||||
#if !defined(__LP64__)
|
||||
sbbb A_Reg, %al
|
||||
@ -1722,7 +1723,6 @@ ENTRY(op_SBC_dec)
|
||||
cmc
|
||||
FlagNVZC
|
||||
#else
|
||||
cmc
|
||||
sbbb A_Reg, %al
|
||||
// DAS algorithm : http://www.ray.masmcode.com/BCDdas.html
|
||||
// CF_old = CF
|
||||
|
Loading…
x
Reference in New Issue
Block a user