Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume that memory cell 79 contains the value +6. In addition, the symbol Z is e

ID: 670005 • Letter: A

Question

Assume that memory cell 79 contains the value +6. In addition, the symbol Z is equivalent to memory location 79. What is placed in register R by each of the following load commands?
A. LOAD 79 B. LOAD 6 C. LOAD Z D. LOAD Z + 1 (Assume this is allowed.) Assume that memory cell 79 contains the value +6. In addition, the symbol Z is equivalent to memory location 79. What is placed in register R by each of the following load commands?
A. LOAD 79 B. LOAD 6 C. LOAD Z D. LOAD Z + 1 (Assume this is allowed.)
A. LOAD 79 B. LOAD 6 C. LOAD Z D. LOAD Z + 1 (Assume this is allowed.)

Explanation / Answer

A. LOAD 79

loads register R with the contents of memory cell 79 that is , the integer +6 will be placed in register R

B. LOAD 6

loads register R with the contents of memory cell 6. Currently we do not know the contents of

memory cell 6. So we can tell that, whatever are the contents of memory cell 6 will be placed in the register R

C. LOAD Z

Symbol Z is equivalent to memory location 79. That means Z contains the same address as the address of memory location 79. This implies that

LOAD Z

loads register R with the contents of memory cell 79 that is , the integer +6  will be placed in register R

D. LOAD Z + 1 (Assume this is allowed.)

symbol Z is equivalent to memory location 79.

Z + 1

=> (memory location of 79) + 1

=> address of the memory cell next to 79

=> address of memory cell 80

LOAD Z + 1

loads register R with the contents of memory cell 80