Back to the 2022 paper

Module 3: Instruction Set and Programming

20227m

Explain in detail about the addressing modes of 8051. Use example instructions for proper explanation.

Worked SolutionAI Assisted

Addressing Modes of 8051 – Detail with Examples

  1. Immediate: MOV A,#0FFH
  2. Register: MOV A,R2, ADD A,R1
  3. Direct: MOV A,30H (internal RAM/SFR direct)
  4. Indirect: MOV A,@R0, MOV @R1,A, MOVX A,@DPTR
  5. Indexed: MOVC A,@A+DPTR, MOVC A,@A+PC
  6. Relative: SJMP REL, JZ REL, DJNZ R0,REL (-128..127)
  7. Absolute: AJMP addr11, ACALL
  8. Long: LJMP addr16, LCALL
  9. Bit: SETB P1.0, CLR ACC.2, MOV C,20H.3
  10. Implied: NOP, CPL A, RLC A

Each distinguishes data source/destination encoding.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.