Back to the 2022 paper

Module 1: Functional Block of computer and Data representaion

20222m

(c) The alternate way of writing the instruction, ADD #5, R1 is
(i) ADD [5],[R1];
(ii) ADDI 5,R1;
(iii) ADDIME 5,[R1];
(iv) There is no other way

Worked SolutionAI Assisted

Answer: (ii) ADDI 5, R1

Explanation:
ADD #5, R1 is Immediate addressing mode - #5 denotes constant 5 as operand, added to register R1.

  • ADDI = ADD Immediate - dedicated mnemonic for immediate operation. ADDI 5,R1 is architecturally identical to ADD #5,R1.
  • (i) ADD [5],[R1] - is direct/memory addressing, wrong.
  • (iii) ADDIME is not a standard mnemonic.

Note: Syntax varies by assembler (ADD R1, #5), but ADDI is the conventional alternate.

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.