mirror of
https://github.com/fadden/6502bench.git
synced 2024-06-11 17:29:29 +00:00
fa04c98dac
The implementation was mapping labels to addresses, then formatting inline data at the matching address. This may be incorrect when there are multiple sections of the file mapped to the same address. The correct approach is to record the offsets of the matching labels, and then do an address-to-offset translation for each JSR. Also, show a note in the Info window when a JSR has been marked no-continue by an extension script. Also, updated Daily Tips.
96 lines
1.8 KiB
ArmAsm
96 lines
1.8 KiB
ArmAsm
.setcpu "6502"
|
|
.org $1000
|
|
jmp L1040
|
|
|
|
InAZ_test: rts
|
|
|
|
InA1_test: rts
|
|
|
|
InPZ_test: rts
|
|
|
|
InP1_test: rts
|
|
|
|
InW_test: rts
|
|
|
|
InWA_test: rts
|
|
|
|
InNR_test: rts
|
|
|
|
.res 54,$00
|
|
|
|
L1040: nop
|
|
jsr InAZ_test
|
|
.asciiz "Test AZ_ low"
|
|
jsr InAZ_test
|
|
.byte $d4,$e5,$f3,$f4,$a0,$c1,$da,$df,$a0,$e8,$e9,$e7,$e8,$00
|
|
jsr InA1_test
|
|
.byte $0c,"Test A1_ low"
|
|
jsr InA1_test
|
|
.byte $0d,$d4,$e5,$f3,$f4,$a0,$c1,$b1,$df,$a0,$e8,$e9,$e7,$e8
|
|
jsr InPZ_test
|
|
.byte $d4,$45,$53,$54,$20,$d0,$da,$5f,$00
|
|
jsr InP1_test
|
|
.byte $08,$d4,$45,$53,$54,$20,$d0,$31,$5f
|
|
jsr InW_test
|
|
.word $1234
|
|
jsr InWA_test
|
|
.word L1040
|
|
jsr @L10AD
|
|
jsr InNR_test
|
|
|
|
.byte $ea
|
|
.byte $00
|
|
|
|
@L10AD: nop
|
|
jsr InW_test1
|
|
.word $1100
|
|
nop
|
|
jmp LF000
|
|
|
|
.byte $80
|
|
|
|
.org $2000
|
|
InW_test1: nop
|
|
jsr InW_test1
|
|
.word $1200
|
|
rts
|
|
|
|
.byte $80
|
|
|
|
.org $2000
|
|
InW_test2: nop
|
|
jsr InW_test2
|
|
.word $1300
|
|
rts
|
|
|
|
.byte $80
|
|
|
|
.org $2000
|
|
not_inline: nop
|
|
jsr not_inline
|
|
bit not_inline
|
|
rts
|
|
|
|
.byte $81
|
|
.org $0000
|
|
InW_na_test: .byte $ea
|
|
.byte $20
|
|
.byte $00
|
|
.byte $30
|
|
.byte $60
|
|
.byte $81
|
|
|
|
.org $f000
|
|
LF000: jsr @LF008
|
|
jsr @LF015
|
|
nop
|
|
rts
|
|
|
|
@LF008: jsr InA1_test
|
|
.byte $ff
|
|
.byte "too long"
|
|
.byte $ea
|
|
|
|
@LF015: jsr InAZ_test
|
|
.byte "does not end"
|