OK, this seems embarassingly simple, but... For midrange PIC (16F877), I write: movlw 0 call getvalue ... getvalue: addwf PCL, F retlw B'10100000' ...etc. All code is within page 0 (< 2048 bytes). Single step thru, upon exec = the 'addwf' the simulator says W=3D0, but the retlw isn't executed... = control jumps off into middle of some other code. I'd swear I've used this construction before, but this isn't flyin'! = Any ideas? Thanks! Jim -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu