mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
Created the 20180-extension-scripts test by cutting out the handful of 65816-specific items from 20182. Removed some issue-specific stuff from 20182 that didn't need to be duplicated. Renamed some stale references to test 2022.
110 lines
2.1 KiB
ArmAsm
110 lines
2.1 KiB
ArmAsm
.setcpu "6502X"
|
|
.org $1000
|
|
jsr PrintInline8String
|
|
.byte "01234567"
|
|
jsr PrintInlineRev8String
|
|
.byte "76543210"
|
|
jsr PrintInlineNullString
|
|
.asciiz "null-term string"
|
|
jsr L1800
|
|
jsr L184E
|
|
jsr L1848
|
|
.byte $00,$01
|
|
.word data01
|
|
.byte $00,$02
|
|
.word data02
|
|
nop
|
|
jsr L1040
|
|
.byte $24
|
|
L1040: .byte $a9
|
|
.byte $00
|
|
sta $ff
|
|
.byte $ea
|
|
jmp Next1
|
|
|
|
PrintInline8String: rts
|
|
|
|
PrintInlineRev8String: rts
|
|
|
|
PrintInlineNullString: rts
|
|
|
|
data01: .word 4386
|
|
.dbyt $3344
|
|
.dword $88776655
|
|
.byte $99,$88,$77,$66
|
|
.byte 'f'
|
|
.byte 'F' | $80
|
|
.byte $40
|
|
.byte $c1
|
|
.byte $42
|
|
.byte $c3
|
|
.byte $44
|
|
.byte $c5
|
|
.byte $46
|
|
.byte $c7
|
|
.faraddr $012000
|
|
.word data02
|
|
.byte $80
|
|
data02: .word @data03
|
|
.byte $80
|
|
.macro HiAscii Arg
|
|
.repeat .strlen(Arg), I
|
|
.byte .strat(Arg, I) | $80
|
|
.endrep
|
|
.endmacro
|
|
@data03: HiAscii "AllEight"
|
|
|
|
NoCont: pla
|
|
pla
|
|
rts
|
|
|
|
L1075: jsr NoCont
|
|
|
|
.byte $00
|
|
.byte $80
|
|
|
|
L107A: jsr NoCont
|
|
|
|
.byte $00
|
|
.byte $80
|
|
|
|
Next1: jsr L1075
|
|
jsr @L108A
|
|
clc
|
|
jsr L107A
|
|
rts
|
|
|
|
@L108A: sec
|
|
jsr L107A
|
|
clc
|
|
.byte $00,$02
|
|
.word data02
|
|
bcc @L1099
|
|
bcs @L1099
|
|
|
|
.byte $00
|
|
.byte $80
|
|
|
|
@L1099: rts
|
|
|
|
.res 358,$00
|
|
|
|
.org $1800
|
|
L1800: jsr PrintInlineNullString
|
|
.byte $62
|
|
|
|
.byte "roken "
|
|
.byte $01
|
|
.org $1840
|
|
.byte "string"
|
|
.byte $00
|
|
.byte $60
|
|
|
|
L1848: jsr PrintInlineNullString
|
|
.byte $0a,$00
|
|
rts
|
|
|
|
L184E: jsr PrintInlineNullString
|
|
adc $6e
|
|
.byte $64
|