Consider the following structure of a 2-address instruction in a machine:…
2022
Consider the following structure of a 2-address instruction in a machine: opcode operand1 operand2 8 bits 8 bits 16 bits If the first operand is in a general-purpose register and the second operand is in memory, which of the following statements about the machine is correct?
- A.
There are 256 registers and memory size is 64 KB bytes
- B.
There are 8 instructions and 8 registers
- C.
There are 256 registers and 216 KB memory
- D.
There are 256 instructions and 216 KB memory
Attempted by 2184 students.
Show answer & explanation
Correct answer: A
Solution: Operand1 = 8 bits → number of distinct registers = 2^8 = 256 . Operand1 = 8 बिट → रजिस्टरों की संख्या = 2^8 = 256 ।