Yeah! I think that's the case.. "as opposed to being a BASIC tokenized equivalent of the SYS CALL?" It looks like BASIC tried to put a line number in, or otherwise made assumptions. The best "fix" I found was to just start the program at $1000 with *=$1000 at the beginning and then run it with SYS $1000.voidstar wrote: ↑Tue Aug 08, 2023 5:41 am Hey, I repeated your steps - not exactly sure what I did differently, but my resulting PRG is valid and running. (well, valid aside from the same issue you had as well)
So agreed, mostly-success!!
Is the PRG code mistake because after the "01 08" starting address, the next bytes after that are a regular 6502 instruction JMP, as opposed to being a BASIC tokenized equivalent of the SYS CALL? (the portion in red below -- 4C is an absolute jump?)
asmedit_example_bad.png
I tried manually patching it, but in the end just did the SYS $0810 like you.
Maybe the manual just needs a few brief simple examples. And maybe an overview of .sor and .s syntax differences? (and of course this PRG creation jump fixed)
You could also byte-bang in a proper BASIC preamble, including the tokenized SYS call (Like ca65 does.) that way the RUN command would work.