COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
LOAD r1, LOAD r2, ADD r1, DIV r1, #2
A
Machine Code
B
High Level
C
Assembly Language
D
None of the above
Explanation: 

Detailed explanation-1: -ADD: This instruction adds 2 values (from 2 registers or from a register and an immediate value) and puts them into a register. Similar format is used for SUB, MULT, DIV, MOD. For eg. “ADD R1 R2 R3; ‘’ will move the value R2+R3 into R1.

Detailed explanation-2: -The effective address of the following instruction is MUL 5(R1, R2). Explanation: The addressing mode used is base with offset and index.

Detailed explanation-3: -The Add R1, R2, R3 instruction requires three operands to be added, and the result is stored in R1.

Detailed explanation-4: -Transfer the contents of register PC to register MAR. Issue a Read command to memory. Transfer the instruction from MDR into IR and decode it. Transfer contents of R1 and R2 to the ALU. More items •18-Feb-2020

There is 1 question to complete.