Consider the instruction given below: Which of the notation given in options is the correct...
Qualcomm technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Consider the instruction given below:
STORE 5, R9
Which of the notation given in options is the correct meaning of the given instruction?
Show answer & explanation
The STORE instruction writes data from a register to memory. The syntax STORE 5, R9 means: store the value in register R9 into memory location 5. This is correctly represented as M[5] = R9, where M denotes memory and [5] is the address. Options A, B, and C are nonsensical or represent incorrect operations (A mixes registers and numbers, B is incomplete, C uses comparison operators inappropriate for a store operation).
Step-by-step Derivation:
In assembly language, STORE is a write-to-memory instruction. The typical format is STORE