OA. free
Free
Qualcomm Embedded Systems & Hardware Embedded Systems & Hardware Medium

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?

Choose one option.
Show answer & explanation
Answer: D. M[5] = R9

The STORE instruction writes data from a register to memory. The syntax STORE 5, R9 means: store the value in register R9 at memory address 5, expressed as M[5] = R9 (M denotes memory, [5] is the address, R9 is the source register). Options A and B are nonsensical notations, and option C represents a comparison rather than a store operation.

Step-by-step Derivation:
The STORE instruction has the general form: STORE

, . Here, 5 is the memory address and R9 is the register containing the value to store. In assembly/hardware notation, M[address] represents the memory location at that address. Therefore, STORE 5, R9 translates to M[5] = R9, meaning the contents of R9 are written to memory at address 5.