Keil Logo Arm Logo

8051 Instruction Set Manual

AJMP

The AJMP instruction transfers program execution to the specified address. The address is formed by combining the 5 high-order bits of the address of the following instruction (for A15-A11), the 3 high-order bits of the opcode (for A10-A8), and the second byte of the instruction (for A7-A0). The destination address must be located in the same 2KByte block of program memory as the opcode following the AJMP instruction. No flags are affected.

See Also: LJMP, SJMP

AJMP addr11
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 2
Encoding
A10A9A800001 A7A6A5A4A3A2A1A0
Operation
PC = PC + 2
PC10-0 = A10-0
Example
AJMP LABEL

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.