Are there any ways to simulate a stack that is 40 bytes deep? Much to my disappointment, I just found out the following code doesn't work the way I thought it would. movwf Reg1 + Var where the contents of 'Var' offset the address. Instead the address of 'Var' is the offset. It seems obvious in retrospect (600 lines of retrospect!!). Goes to show the importance of testing as you go. I'm hoping there's some way to save my effort. The line is used in several instances but mostly in loops where Var is decremented with each pass. All help appreciated Nick -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.