Keil Logo Arm Logo


The following pages describe the 8051 instruction set. Instructions are listed in alphabetical order and each is divided into several sections:

Description Describes the instruction's effect and describes any arguments.
See Also Names related instructions.
Bytes Lists the number of bytes required to encode the instruction.
Cycles Lists the number of instruction cycles required to execute the instruction. Note that there are 12 oscillator cycles to one instruction cycle on a standard 8051.
Encoding Lists the byte encoding for the instruction.
Operation Lists, step-by-step, the operations performed by the instruction.
Example Shows proper use of the instruction.

Many instructions have required arguments that are described in the following table:

Argument Description
addr11 An 11-bit address destination. This argument is used by ACALL and AJMP instructions. The target of the CALL or JMP must lie within the same 2K page as the first byte of the following instruction.
addr16 A 16-bit address destination. This argument is used by LCALL and LJMP instructions.
bit A direct addressed bit in internal data RAM or SFR memory.
direct An internal data RAM location (0-127) or SFR (128-255).
immediate A constant included in the instruction encoding.
offset A signed (two's complement) 8-bit offset (-128 to 127) relative to the first byte of the following instruction.
@Ri An internal data RAM location (0-255) addressed indirectly through R0 or R1.
Rn Register R0-R7.

Related Knowledgebase Articles

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.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.

Acquisition of ARM Holdings plc. by SoftBank Group Corp.

We are pleased to inform you that on 5 September 2016, SoftBank Group Corp. acquired ARM Holdings Plc. ARM will continue to operate as an independent business within the SoftBank group.

Any current agreements between ARM Ltd (or other ARM group companies, as applicable) you / your company remain in effect as between the parties, and the parties will continue to be bound by and perform the obligations in such agreements. If you have any queries please direct these to