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 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

, . Here, address=5 and register=R9. The operation transfers the contents of R9 into memory at address 5. Using standard notation: M[address] = register_value, we get M[5] = R9.