1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-03 23:06:09 +00:00
6502bench/SourceGen/SGTestData/Expected/20172-external-symbols_64tass.S

97 lines
2.1 KiB
ArmAsm
Raw Normal View History

.cpu "65816"
oth_00 = $1234
loaddr = $c030
oth_01 = $011234
oth_02 = $021234
addr_02 = $02c030
addr_03 = $03c030
hiaddr = $e0c030
addr_e2 = $e2c030
addr_e3 = $e3c030
* = $1000
.as
.xs
clc
xce
sep #$30
phk
plb
lda loaddr
lda loaddr+$10000
lda addr_02
lda addr_03
lda hiaddr
lda hiaddr+$10000
lda addr_e2
lda addr_e3
lda oth_00
lda oth_01
lda oth_02
lda #$01
pha
plb
lda @lloaddr
lda loaddr
lda addr_02
lda addr_03
lda hiaddr
lda hiaddr+$10000
lda addr_e2
lda addr_e3
lda @loth_00
lda oth_01 & $ffff
lda oth_02
lda #$02
pha
plb
lda @lloaddr
lda loaddr+$10000
lda addr_02 & $ffff
lda addr_03
lda hiaddr
lda hiaddr+$10000
lda addr_e2
lda addr_e3
lda @loth_00
lda oth_01
lda oth_02 & $ffff
lda #$03
pha
plb
lda @lloaddr
lda loaddr+$10000
lda addr_02
lda addr_03 & $ffff
lda hiaddr
lda hiaddr+$10000
lda addr_e2
lda addr_e3
lda @loth_00
lda oth_01
lda oth_02
lda #$e0
pha
plb
lda @lloaddr
lda loaddr+$10000
lda addr_02
lda addr_03
lda hiaddr & $ffff
lda hiaddr+$10000
lda addr_e2
lda addr_e3
lda #$e1
pha
plb
lda @lloaddr
lda loaddr+$10000
lda addr_02
lda addr_03
lda hiaddr
lda hiaddr & $ffff
lda addr_e2
lda addr_e3
rts