No exact or substring matches. trying for part
PICList
Thread
'[PICLIST] [PIC] 16c84 Problem'
2000\09\22@104826
by
Paul
2000\09\24@191400
by
Tony Nixon
Paul wrote:
> l have another addwf pcl at 0x00C2 that goes to 0x00D0 but the GOTO
> instruction can jump anywhere through pages as long as it is within 256
> bytes of its destination...
AAAAAAAANK!! [sound of buzzer going off]
The GOTO can jump to anywhere in a 2K boundary (2048 bytes)
Addresses supplied in a GOTO instruction = 11 bits = 2K
The GOTO can jump to anyhere in an 8K boundary (8192 bytes) because of
the PCLATH bits <4:3>.
Now GOTO address = 13 bits = 8K
PCLATH bits <4:3> are "always" concatenated onto the GOTO's 11 bits. If
the PIC has 2K or less of address space then the PCLATH bits are
ignored. (What good is 13 bits when you only have 11 to play with).
CALL instructions follow the same rule.
--
Best regards
Tony
ICmicro's
http://www.picnpoke.com
sales
KILLspampicnpoke.com
--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's
More... (looser matching)
- Last day of these posts
- In 2000
, 2001 only
- Today
- New search...