Code: Select all
; test.a
!to "test", plain
!cpu 65c02
* = $8000
!src "lib.a"
reset
jmp a
* = $fffc
!word reset
!word $0
Code: Select all
; lib.a
!ifdef lib_a !eof
lib_a = 1
a
jmp b ; Triggers a second pass because `b` is not known here
b
jmp a
(edit): I don't get the same error if I inline the contents of 'lib.a' directly in 'test.a', so it's something about the !src call.