Sean Schouten wrote: > Hector: I am simulating it in MPLAB, because it doesn't work like I want it > to on the real thing. I define TEMP_VAR like so: TEMP_VAR RES 1. Make sure you've got the right PIC selected, and that it's address is set so something on the general purpose register range. You can temporarily try something like TEMP_VAR EQU 0x30 instead of using RES. (note: the start of GPRs is 0x20 on that PIC, so that should work too) If that works, RES is putting your data somewhere where you don't want it. Check the linker file. You can also paste the .hex file, and I can check it with a disassembler to see if there is something weird in the addresses. -- Hector Martin (hector@marcansoft.com) Public Key: http://www.marcansoft.com/hector.asc -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist