mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-18 15:06:07 +00:00
9321f15052
The test for max allowed value was assuming 16-bit addresses. We had no tests for 24-bit values, so this adds a 65816-specific version of 20170-external-symbols.
97 lines
2.1 KiB
ArmAsm
97 lines
2.1 KiB
ArmAsm
.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
|
|
|