On Wed, 19 Jun 2002 10:57:23 -0700, Brendan Moran wrote: >Hang on, here, I'm not going over a page boundary, just over a 256 word >boundary > > The 16F87x datasheet has this entry for GOTO > >Syntax: [ label ] GOTO k >Operands: 0 =3D< k =3D< 2047 >Operation: k -> PC<10:0> >PCLATH<4:3> -> PC<12:11> >Status Affected: None >Description: GOTO is an unconditional branch. >The eleven-bit immediate value is >loaded into PC bits <10:0>. The >upper bits of PC are loaded from >PCLATH<4:3>. GOTO is a twocycle >instruction. > > >I'm having a problem with bit 8 of the PC or, PCLATH <0>. According to = that >entry, PCLATH <2:0> adjust themselves when a goto or call is used. > No, it says that PCLATH <2:0> aren't used in the GOTO or CALL instruction and that only the page bits <4:3> are.=20 You're reading something into the description that just isn't there. It doesn't say anything about bits PCLATH <2:0> adjusting themselves. Regards, Bob -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body