Correct Answer - Option 3 : 8
The correct answer is "option 3".
CONCEPT:
To obtain operand value from memory, the address field of an instruction is used by the CPU.
In single address instruction, one of the operands is stored in the accumulator & the other operand may be either in register or memory.
EXPLANATION:
All the operations will be performed in the Accumulator register(AC).
The load operation is used to fetch the value from register or memory to accumulator.
The store operation is used to store the value from the accumulator to register or memory.
The one address instructions for the given equations are:
Load/Store/Operation
|
One-address Instruction
|
LOAD N |
AC ← M[N] |
MUL O |
AC ← AC × M[O] |
ADD M |
AC ← AC + M[M] |
STORE T |
M[T] ← AC |
LOAD P
|
AC ← M[P]
|
MUL Q
|
AC ← AC × M[Q]
|
DIV T
|
AC ← AC/ M[T]
|
STORE X
|
M[X] ← AC
|
Hence, the correct answer is "option 3".