> > >A compiler option to set the page back to page 0 after visiting the > >upper registers might be handy in such sitiations. The adequate > > Well, you may try THIS if you need to squeeze more into code memory with MPC: > > #pragma option j7; > > Placed near the top of the source, it shuts off page selects entirely, and > generates "check page" warnings. Its quite easy to manually select pages > yourself. > > This works with BC.245, and some earlier versions. I don't know if there are > any caveats with its use. ByteCraft probably doesn't support it as it seems > to have been added for testing. They told me about it when I needed to fit > more into a PIC16C84 and my code was producing 8% redundant page selects. > > Use with caution, and only if absolutely required. Double check the produced > code. The j options in the MPC compiler are all unsupported options. There is no garantee that they will always remain. There are put into the compiler for a number of reason's some for us to understand specific issues about code generation and some in response to requests from customers for a specific feature or option. I just checked the compiler sources and j7 is still there. The internal name is NoBSR and it was put into the compiler in response to Dana Raymonds request and it is used by us to establish an absolute limit as to the amount of optimization that can be done. (No BSR code generation but the rest of the generated code is the same) Walter