From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-31 15:28:53
Hi! On Sat, Nov 01, 2003 at 12:50:17AM +1030, Todd Elliott wrote: > This PC behavior is what I was expecting from my example I outlined > earlier. The relocated segment, set with an .org $5f00, was actually $AD > bytes long. Theoretically, the PC value after this code block should be > the value before the absolute code + $AD. This did not happen. It was like > the value before the absolute code + $0179. Can you send me a short piece of code showing this behaviour? In my tests the the assembler behaves correctly: --------------------------------------------------------------------------- ca65 V2.9.3 - (C) Copyright 1998-2000 Ullrich von Bassewitz Main file : t.s Current file: t.s 000000r 1 000000r 1 00 .byte $00 000001r 1 .org $2000 002000 1 00 00 00 00 .res 255, $00 002004 1 00 00 00 00 002008 1 00 00 00 00 0020FF 1 .reloc 000100r 1 00 .byte $00 000101r 1 --------------------------------------------------------------------------- > > I will try to explore other means of doing code that is destined for > somewhere else in memory. But, I liked my method better as it's more > intuitive and easier to implement. > > 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. -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- 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 15:29:03 CET