The 8051 Instruction Set
1-27 Atmel 8051 Microcontrollers Hardware Manual
4316B–8051–02/04
1.14.4 AJMPaddr11
Function: Absolute Jump
Description: AJMP transfers program execution to the indicated address, which is formed at run-time by concatenating the
high-order five bits of the PC (after incrementing the PC twice), opcode bits 7 through 5, and the second byte of
the instruction. The destination must therfore be within the same 2 K block of program memory as the first byte
of the instruction following AJMP.
Example: The label JMPADR is at program memory location 0123H. The following instruction,
AJMP JMPADR
is at location 0345H and loads the PC with 0123H.
Bytes: 2
Cycles: 2
Encoding: a10a9a800001 a7a6a5a4a3a2a1a0
Operation: AJMP
(PC) ← (PC) + 2
(PC
10-0
) ← page address