Same problem when processing a backward goto. --- James Newton (PICList Admin #3) mailto:jamesnewton@piclist.com 1-619-652-0593 PIC/PICList FAQ: http://www.piclist.com or .org -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of David VanHorn Sent: Wednesday, May 02, 2001 09:52 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Super Assembler (parser) Importance: Low At 09:42 AM 5/2/01 -0700, James Newton wrote: >How would you account for the movement of code near the end of the program >as a result of the insertion or deletion of page directives earlier in the >code? E.g. You process a forward goto that you see does not require a page >setting because it is in the same page but later you have to add page >setting code for another goto between the first one and the first ones >target. Now the first gotos target is pushed out of range and requires >paging code. Going back to insert it might even cause the second goto to >pushed in range of its target and removal of its page setting code may bring >the first goto target back in range. Start from the back then. Scan through and get positions on all the jump targets. Start at the front, and fix all the jumps for target "Z", then "Y"... -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads