1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-11 17:29:29 +00:00
6502bench/SourceGen/SGTestData/Expected/20270-std-inline_merlin32.S
Andy McFadden fa04c98dac Correct StdInline behavior for overlapping addresses
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.
2021-10-27 16:48:25 -07:00

95 lines
1.5 KiB
ArmAsm

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
ds 54
L1040 nop
jsr InAZ_test
asc 'Test AZ_ low',00
jsr InAZ_test
asc "Test AZ_ high",00
jsr InA1_test
str 'Test A1_ low'
jsr InA1_test
str "Test A1_ high"
jsr InPZ_test
hex d445535420d0da5f00
jsr InP1_test
hex 08d445535420d0315f
jsr InW_test
dw $1234
jsr InWA_test
dw L1040
jsr :L10AD
jsr InNR_test
dfb $ea
dfb $00
:L10AD nop
jsr InW_test1
dw $1100
nop
jmp LF000
dfb $80
org $2000
InW_test1 nop
jsr InW_test1
dw $1200
rts
dfb $80
org $2000
InW_test2 nop
jsr InW_test2
dw $1300
rts
dfb $80
org $2000
not_inline nop
jsr not_inline
bit not_inline
rts
dfb $81
org $0000
InW_na_test dfb $ea
dfb $20
dfb $00
dfb $30
dfb $60
dfb $81
org $f000
LF000 jsr :LF008
jsr :LF015
nop
rts
:LF008 jsr InA1_test
dfb $ff
asc 'too long'
dfb $ea
:LF015 jsr InAZ_test
asc 'does not end'