Skip to content
Question Bank (2 marks) · Q3

Q.Mention different opcodes used in 8051.

Karnataka PUCTextbookShort· 2mImportance★★★★★est
14% · 16/115 Questions
✓ Free question

[!TLDR]

The 8051 opcodes fall into four families — data transfer, arithmetic, logical and branch/program-control instructions.

An opcode is the symbolic (mnemonic) name of the operation an instruction carries out. The 8051 instruction set can be classified as:

  • Data-transfer: MOV, MOVX, MOVC, PUSH, POP, XCH — move data between registers, RAM and the accumulator.
  • Arithmetic: ADD, ADDC, SUBB, MUL, DIV, INC, DEC — perform add, subtract, multiply, divide and increment/decrement.
  • Logical: ANL, ORL, XRL, CLR, CPL, RL, RR — bitwise AND/OR/XOR, clear, complement and rotate.
  • Branching / program control: SJMP, LJMP, AJMP, JZ, JNZ, ACALL, LCALL, RET — change program flow and call/return from subroutines.

[!ANSWER]

The main 8051 opcodes include MOV, ADD, ADDC, SUBB, MUL, DIV, INC, DEC, ANL, ORL, XRL, CLR, CPL, SJMP, JZ, JNZ, ACALL and RET, grouped as data-transfer, arithmetic, logical and branching instructions.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.