AAGDOS
Experienced Member
This is probably obvious to all the experienced C64 programmers here, but to a new "retro" member (myself!) I was puzzled by how to connect Basic to Assembly with the USR function.
Initially I loaded the Assembly Code at $8000 (Hex) and then composed a short Basic code to access it and see if it worked. It just showed a slew of weird characters on the screen when I ran it.
The "solution" finally came to me. I wrote and SAVED the Basic code to disk first. Then to run, I first loaded the Assembly Code, and then loaded the Basic Code, and then typed "RUN". That worked perfectly.
I assume the original Basic code was "messing with" the previously loaded Assembly code in the first tries??
Lesson learned!
Initially I loaded the Assembly Code at $8000 (Hex) and then composed a short Basic code to access it and see if it worked. It just showed a slew of weird characters on the screen when I ran it.
The "solution" finally came to me. I wrote and SAVED the Basic code to disk first. Then to run, I first loaded the Assembly Code, and then loaded the Basic Code, and then typed "RUN". That worked perfectly.
I assume the original Basic code was "messing with" the previously loaded Assembly code in the first tries??
Lesson learned!