From what I have read in these forums and in the CA65 docs, I would think that this would work (a snippet of generated code):
However, it does not and I get the following output:
Any suggestions? Does anything look wrong?
Code:
; generated 2016-02-11T16:32:59-08:00
.PROC snake
.global test
init:
jsr test::method
rts
update:
rts
destroy:
rts
.ENDPROC
.PROC test
method:
rts
.ENDPROC
.PROC snake
.global test
init:
jsr test::method
rts
update:
rts
destroy:
rts
.ENDPROC
.PROC test
method:
rts
.ENDPROC
However, it does not and I get the following output:
Code:
ca65 .\src\main.s -g -l .\bin\main.ls -o .\bin\main.o -D DEBUG=1
.\src/scenes/../../bin/gen/..\./objects/SNAKE.s(6): Error: No such scope: `test'
.\src/scenes/../../bin/gen/..\./objects/SNAKE.s(6): Error: Unexpected trailing garbage characters
.\src/scenes/../../bin/gen/..\./objects/SNAKE.s(6): Error: No such scope: `test'
.\src/scenes/../../bin/gen/..\./objects/SNAKE.s(6): Error: Unexpected trailing garbage characters
Any suggestions? Does anything look wrong?