Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

The ADDI instructions adds two numbers, but by setting the imm to 0, we can use them to copy numbers from one location to another.

Instruction #0 copies cell #3 to cell #7 by adding 0 to cell #3 and storing the result in cell #7.

Similarly, instruction #1 stores cell #4 to cell #8, and instruction #2 copies cell #5 to cell #9.

Quiz (1 point)

Given that:
the PC at time 0 = 0
instruction #0 is addi dst=7 src=3 imm=0
instruction #1 is addi dst=8 src=4 imm=0
instruction #2 is addi dst=9 src=5 imm=0
value of cell 3 at time 0 = 13
value of cell 4 at time 0 = 11
value of cell 5 at time 0 = 20

Prove that:
value of cell 8 at time 3 = 11

The following properties may be helpful:

Please write your proof in the table below. Each row should contain one claim. The last claim is the statement that you are trying to prove.

Step Claim Reason (optional) Error Message (if any)
1
2
3
4
5
6
7
8
9
10

Become a subscriber to save your progress, see the correct answer, and more!