Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->AJMP

AJMP    Absolute Jump within 2K Byte Page

Assembler Mnemonic: AJMP <addr11>

AJMP transfers program execution to the address <addr11>.

Only the 11 low order bits of <addr11> are used.  The other bits are taken from the program counter (PC) after it has been incremented by 2 to point at the instruction following AJMP.  <addr11> must therefore be within the same 2k block of memory as the first byte of the instruction following the AJMP instruction.

The error is generated if <address> is out of range.
    
Bytes:2
Cycles:2
    
PSW flags:CACF0RS1RS0OVP
N/AN/AN/AN/AN/AN/AN/A

(N/A: Not affected)