> The code simulates perfectly but when run on the acutual chip, it spins off >into program space when I call the routine at the end of my asm file and >seems to wrap around to the beginning of the program. > > All the code fits in under about 0x2ce > >When I move the routine in question dow to the "front of the code" it >works, but then the new one at the end fails. End of the program missing? In the old days I used to manually set the programming range, because it programmed the chip faster if the program is small. I shot myself in the foot numerous times; using yours as an example I'd have the program size erroneously set to 027F. These days MPLAB probably warns you. I gave up that practice after a few of these. And the "A" processors and the ICD2 both make for faster programming anyway. Barry -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist