1
0
mirror of https://github.com/fadden/6502bench.git synced 2026-04-21 10:16:42 +00:00

Ignore project/platform symbols in StdInline

External symbols don't have a file offset, so a JSR to an external
address can't reliably be matched to a label.
This commit is contained in:
Andy McFadden
2021-10-27 20:23:34 -07:00
parent fa04c98dac
commit 07f5396eee
8 changed files with 85 additions and 14 deletions
+13 -1
View File
@@ -8,6 +8,7 @@
!cpu 6502
* = $1000
f_W_ext = $e000 ;EDIT: add project symbol
jmp calls
; EDIT: put appropriate labels on these
@@ -64,7 +65,7 @@ cont nop
!word $1100
nop
jmp end_stuff
jmp test_ext
!byte $80
@@ -109,6 +110,17 @@ f_W_na nop
!byte $81
; Test a call to a project symbol with a matching name. These don't
; have offsets, so the question of whether or not to handle the JSR
; hinges on the specific symbol used in the source.
!pseudopc $4000 {
test_ext bit test_ext
jsr f_W_ext
jmp end_stuff
}
!pseudopc $f000 {
; end-of-file error cases
end_stuff