Instructions of 8051
An instruction performs a specific operation. The instructions in 8051 can be classified as per the size they take up in memory or as per the function they perform.
Classification as per Size
- Single Byte instructions
- Two Byte instructions
- 3 Byte Instructions
Classification based on the function
- Data Transfer Instruction : MOV, MOVC, MOVX, SWAP, XCH, XCHG, PUSH, POP
- Arithmetic Instruction : ADD, ADDC, INC, SUB, SUBB, DEC, DA, MUL, DIV
- Branch Type Instructions : ACALL, LCALL, JMP, SJMP,
- Logical Instructions
- Rotate Instructions
Date Transfer Instructions
These are used to move or transfer data from source to destination. The source may be an immediate data, a register or a RAM or ROM location, the destination may be a register or RAM location.