> isnt that a macro? Yes it is. It just sets PCLATH before CALL'ing the sub.. B.t.w, you do *not* GOTO subs, as you wrote. > im using pic16f877(self programming). > the chip will be programming this into itself, so macros wont work. Of course not, macros are for MPASM. What is the problem ? > i dont understand how it could work. if you wanted to switch to, say, When ? What is "switch" ? > address 0 of page0, i would need to clrf pclath, then i would need to clrf > pcl. You want to goto the reset-vector ?? > wouldnt clearing pclath modify the program counter and before i could > move to to address 0. What is "move" ? Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist