From: Groepaz (groepaz_at_gmx.net)
Date: 2003-10-31 08:53:20
On Friday 31 October 2003 05:22, Todd Elliott wrote: > 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. you should omit the first .org directive, and then tell the assembler the actual startaddress on commandline (or, in a linkerconfig). gpz ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-10-31 07:59:28 CET