Back to the 2020 paper

Module 3: Instruction Set and Programming

20206m

Explain the data transfer instructions and arithmetic instructions with few examples.

Worked SolutionAI Assisted

Data Transfer & Arithmetic Instructions – Examples (as Q148)

Data Transfer:

  • MOV A,#25H (immediate→A)
  • MOV 30H,A (A→direct)
  • MOV A,@R0 (indirect)
  • MOV DPTR,#1000H
  • MOVC A,@A+DPTR (table)
  • MOVX A,@DPTR (external)
  • PUSH ACC, POP B

Arithmetic:

  • ADD A,R0 (A+=R0, CYOV)
  • ADDC A,#10H with carry
  • SUBB A,R1
  • INC DPTR
  • MUL AB, DIV AB, DA A (decimal adjust).

Example program snippet adding two arrays etc.

Similar questions

Student FinanceWeb Platform

Pocketly — Personal Finance for Students

Keep your hostel and college expenses under control. Track accounts, log spending in seconds, and stay within your monthly budget.