1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-12 10:30:23 +00:00
rk65c02/test/test_emulation_adc_bcd.s

40 lines
336 B
ArmAsm
Raw Normal View History

; somewhat inspired by http://www.6502.org/tutorials/decimal_mode.html
start: sed
sec
lda #0x58
adc #0x46
sta 0x10
php
plx
stx 0x11
2017-02-12 22:11:46 +00:00
sed
clc
lda #0x12
adc #0x34
sta 0x20
php
plx
stx 0x21
sed
clc
lda #0x15
adc #0x26
sta 0x30
php
plx
stx 0x31
sed
clc
lda #0x81
adc #0x92
sta 0x40
php
plx
stx 0x41
stp