[Coco] Making 6809 position independent

Allen Huffman alsplace at pobox.com
Wed Oct 29 13:01:08 EDT 2025


Surely I knew this, because I wrote OS-9/6809 code which has to be position independent… But…

As long as I avoid things like JMP (unless jumping to a fixed location such as in ROM), should my code be loadable anywhere in BASIC?

I completely forget how to do this. I have built a routine to load at &H7F00 but I want it to be loadable anywhere — such as a lower address for a 16K system.

Can someone here remind me how that worked? I recall

LOADM “FILE”,xxx

…or something. It’s been way too long for me!

		— A



More information about the Coco mailing list