The document details the instruction set of the 8051 microcontroller. It includes over 100 instructions organized into categories like MOVE, LOGICAL, JUMP, CALL and more. Each instruction is listed with its hex code, bytes, and operation.
The document details the instruction set of the 8051 microcontroller. It includes over 100 instructions organized into categories like MOVE, LOGICAL, JUMP, CALL and more. Each instruction is listed with its hex code, bytes, and operation.
The document details the instruction set of the 8051 microcontroller. It includes over 100 instructions organized into categories like MOVE, LOGICAL, JUMP, CALL and more. Each instruction is listed with its hex code, bytes, and operation.
The document details the instruction set of the 8051 microcontroller. It includes over 100 instructions organized into categories like MOVE, LOGICAL, JUMP, CALL and more. Each instruction is listed with its hex code, bytes, and operation.
FB 1 MOV R3, A MOVE with immediate data FC 1 MOV R4, A FD 1 MOV R5, A Hex Bytes Instruction FE 1 MOV R6, A 74 2 MOV A, #immediate FF 1 MOV R7, A 75 3 MOV direct, #immediate 76 2 MOV @R0, #immediate MOVE with external memory 77 2 MOV @R1, #immediate 78 2 MOV R0, #immediate E0 1 MOVX A, @DPTR 79 2 MOV R1, #immediate E2 1 MOVX A, @R0 7A 2 MOV R2, #immediate E3 1 MOVX A, @R1 7B 2 MOV R3, #immediate F0 1 MOVX @DPTR, A 7C 2 MOV R4, #immediate F2 1 MOVX @R0, A 7D 2 MOV R5, #immediate F3 1 MOVX @R1, A 7E 2 MOV R6, #immediate 7F 2 MOV R7, #immediate MOVE with code memory 90 3 MOV DPTR, #immediate 83 1 MOVC A, @A+PC MOVE with direct memory location 93 1 MOVC A, @A+DPTR
85 3 MOV direct, direct Bit MOVE
88 2 MOV direct, R0 89 2 MOV direct, R1 92 2 MOV bit, C 8A 2 MOV direct, R2 A2 2 MOV C, bit 8B 2 MOV direct, R3 8C 2 MOV direct, R4 Indirect MOVE with R0 and R1 8D 2 MOV direct, R5 8E 2 MOV direct, R6 86 2 MOV direct, @R0 8F 2 MOV direct, R7 87 2 MOV direct, @R1 A8 2 MOV R0, direct A6 2 MOV @R0, direct A9 2 MOV R1, direct A7 2 MOV @R1, direct AA 2 MOV R2, direct AB 2 MOV R3, direct ADD with Accumulator AC 2 MOV R4, direct AD 2 MOV R5, direct 24 2 ADD A, #immediate AE 2 MOV R6, direct 25 2 ADD A, direct AF 2 MOV R7, direct 26 1 ADD A, @R0 27 1 ADD A, @R1 MOVE with Accumulator 28 1 ADD A, R0 29 1 ADD A, R1 E5 2 MOV A, direct 2A 1 ADD A, R2 E6 1 MOV A, @R0 2B 1 ADD A, R3 E7 1 MOV A, @R1 2C 1 ADD A, R4 E8 1 MOV A, R0 2D 1 ADD A, R5 E9 1 MOV A, R1 2E 1 ADD A, R6 EA 1 MOV A, R2 2F 1 ADD A, R7 EB 1 MOV A, R3 EC 1 MOV A, R4 ADD with Accumulator & carry flag ED 1 MOV A, R5 EE 1 MOV A, R6 34 2 ADDC A, #immediate EF 1 MOV A, R7 35 2 ADDC A, direct F5 2 MOV direct, A 36 1 ADDC A, @R0 F6 1 MOV @R0, A 37 1 ADDC A, @R1 F7 1 MOV @R1, A 38 1 ADDC A, R0 F8 1 MOV R0, A 39 1 ADDC A, R1 3A 1 ADDC A, R2 B8 3 CJNE R0, #immediate, offset 3B 1 ADDC A, R3 B9 3 CJNE R1, #immediate, offset 3C 1 ADDC A, R4 BA 3 CJNE R2, #immediate, offset 3D 1 ADDC A, R5 BB 3 CJNE R3, #immediate, offset 3E 1 ADDC A, R6 BC 3 CJNE R4, #immediate, offset 3F 1 ADDC A, R7 BD 3 CJNE R5, #immediate, offset BE 3 CJNE R6, #immediate, offset Subtract with borrow BF 3 CJNE R7, #immediate, offset
94 2 SUBB A, #immediate D8 2 DJNZ R0, offset
95 2 SUBB A, direct D9 2 DJNZ R1, offset 96 1 SUBB A, @R0 DA 2 DJNZ R2, offset 97 1 SUBB A, @R1 DB 2 DJNZ R3, offset 98 1 SUBB A, R0 DC 2 DJNZ R4, offset 99 1 SUBB A, R1 DD 2 DJNZ R5, offset 9A 1 SUBB A, R2 DE 2 DJNZ R6, offset 9B 1 SUBB A, R3 DF 2 DJNZ R7, offset 9C 1 SUBB A, R4 D5 3 DJNZ direct, offset 9D 1 SUBB A, R5 9E 1 SUBB A, R6 9F 1 SUBB A, R7 JUMP INC and DEC 01 2 AJMP addr11 04 1 INC A 21 2 AJMP addr11 05 2 INC direct 41 2 AJMP addr11 06 1 INC @R0 61 2 AJMP addr11 07 1 INC @R1 81 2 AJMP addr11 08 1 INC R0 A1 2 AJMP addr11 09 1 INC R1 C1 2 AJMP addr11 0A 1 INC R2 E1 2 AJMP addr11 0B 1 INC R3 0C 1 INC R4 02 3 LJMP addr16 0D 1 INC R5 80 2 SJMP offset 0E 1 INC R6 0F 1 INC R7 JUMP with flag A3 1 INC DPTR 10 3 JBC bit, offset 14 1 DEC A 20 3 JB bit, offset 15 2 DEC direct 30 3 JNB bit, offset 16 1 DEC @R0 40 2 JC offset 17 1 DEC @R1 50 2 JNC offset 18 1 DEC R0 60 2 JZ offset 19 1 DEC R1 70 2 JNZ offset 1A 1 DEC R2 1B 1 DEC R3 JUMP indirect 1C 1 DEC R4 1D 1 DEC R5 73 1 JMP @A+DPTR 1E 1 DEC R6 1F 1 DEC R7 CALL subroutine and Return
COMPARE with JUMP 11 2 ACALL addr11
31 2 ACALL addr11 B4 3 CJNE A, #immediate, offset 51 2 ACALL addr11 B5 3 CJNE A, direct, offset 71 2 ACALL addr11 B6 3 CJNE @R0, #immediate, offset 91 2 ACALL addr11 B7 3 CJNE @R1, #immediate, offset B1 2 ACALL addr11 D1 2 ACALLaddr11 6C 1 XRL A, R4 F1 2 ACALL addr11 6D 1 XRL A, R5 6E 1 XRL A, R6 12 3 LCALL addr16 6F 1 XRL A, R7 22 1 RET 32 1 RETI BIT logical