[cc65] CA65 Relocatable code?

Date view Thread view Subject view

From: Todd Elliott (eyeth_at_videocam.net.au)
Date: 2003-10-31 05:22:51


Hello.

How do I add code that is destined for an another address?

For example:

.org $0400
code...
code to transfer special code elsewhere in memory

.org $5f00
special code
.reloc	; go back to regular code
code...

It seems that the .reloc command really doesn't work. I expected the PC
counter to go back to the value as set by the first .org directive working
downwards. The PC value seems to be a little bit off.

Am I missing something? I need to load in special code along with the main
program, and then put it somewhere else, like inside the disk drive's RAM,
etc. The code that follows the special code doesn't have their PC values
lined up.

Thanks,
-- 
Todd Elliott
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-31 05:25:35 CET