MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The instruction, Add #45, R1 does ____
A
Adds the value of 45 to the address of R1 and stores 45 in that address
B
Adds 45 to the value of R1 and stores it in R1
C
Finds the memory location 45 and adds that content to that of R1
D
None of the mentioned
Explanation: 

Detailed explanation-1: -In 8085 Instruction set, ADD R is a mnemonic that stands for “Add contents of R to Accumulator”. As addition is a binary operation, so it requires two operands to be operated on. So input operands will reside on Accumulator and R registers and after addition the result will be stored back on to Accumulator.

Detailed explanation-2: -The ADD instruction adds a byte value to the accumulator and stores the results back in the accumulator. Several of the flag registers are affected.

Detailed explanation-3: -Three Address Instructions The operation implemented on operands is ‘ADD.

Detailed explanation-4: -In 8085 Instruction set, ADI is a mnemonic, which stands for “ADd Immediate to Accumulator” and here “d8” stands for any 8-bit or 1-Byte of data. This instruction is used to add 8-bit immediate data to the Accumulator. The result of addition will be stored in the Accumulator.

Detailed explanation-5: -ADD:-The content of operand are added to the content of the accumulator and the result is stored in Accumulator. Eg-ADD B (it adds the content of accumulator to the content of the register B)

There is 1 question to complete.