JMP W |
|
Description: | Move W into PC(L), clear bit 8 |
Operation: | PC = ( PC & 0xFE00 ) + W |
Flags affected: | none |
Registers affected: | PC |
Sources referenced: | W |
Cycles: | 1 |
Opcode: | |
Actually compiles to: | mov 2, W |
Microchip PIC syntax: | MOVWF 2 |
Notes: |
Despite this not being documented anywhere, adding, or-ing, and-ing, moving, etc... an 8 bit value to the PC (bits 0..7) also results in CLEARING the 9th bit (bit 8) of the PC. So you can only do relative or computed jumps into the first half page of each page. Just like calls.