On Sun, 14 Dec 1997 15:19:18 +0100 Humberto Bonasso writes: > I'm a newby about PIC assembler and I'm currently developing a >= >rather long program for PIC16F84 (at the moment it takes 3 pages of = >memory). After reading tons of info regarding PCLATH, page crossing >and = >all the stuff related on how to handle the program counter I was = >confident to have the knowledge to manage the matter. [...] > Am I missing something relevant with this issue ? Your description indicates you understand most of the situation quite well. The remaining confusion comes from there being two types of operations with PCLATH. A move to PCL loads bits 8 and higher of PC from PCLATH. The "pages" that a given value of PCLATH will access are 256 bytes in size. A CALL or GOTO loads bits 11 and higher from PCLATH. The "pages" in this situation are 2K in size. So if the program is smaller than 2K, you don't have to worry about "paging" the CALLs or GOTOs at all, only the move to PCL situations.