1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-04 19:50:19 +00:00
rk65c02/test/test_emulation_sign_overflow_basic.s
Radosław Kujawa 8008d045d3 Add simpler test for ADC/SBC flags.
The name is unfortunate though.
2017-02-02 22:55:21 +01:00

37 lines
270 B
ArmAsm

start: clc
adc #0x10
clc
adc #0x50
clc
adc #0x90
clc
adc #0xD0
clc
adc #0x10
clc
adc #0x50
clc
adc #0x90
clc
adc #0xD0
sec
sbc #0xF0
sec
sbc #0xB0
sec
sbc #0x70
sec
sbc #0x30
sec
sbc #0xF0
sec
sbc #0xB0
sec
sbc #0x70
sec
sbc #0x30
stp