Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

Quiz (1 point)

Given that:
the PC at time 0 = 0
instruction #0 is addi dst=1 src=0 imm=128
instruction #1 is jump imm=8
instruction #2 is load dst=3 addr=1 imm=1
instruction #3 is load dst=4 addr=1 imm=0
instruction #4 is add dst=3 src1=3 src2=4
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 5
instruction #6 is store src=3 addr=1 imm=0
instruction #7 is jumpr addr=2
instruction #8 is addi dst=3 src=0 imm=2
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 9
instruction #10 is store src=3 addr=1 imm=0
instruction #11 is addi dst=3 src=0 imm=3
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 12
instruction #13 is store src=3 addr=1 imm=0
instruction #14 is load dst=3 addr=1 imm=1
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 15
instruction #16 is store src=3 addr=1 imm=0
instruction #17 is load dst=3 addr=1 imm=1
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 18
instruction #19 is store src=3 addr=1 imm=0
instruction #20 is a JAL instruction with jump to: 2
instruction #21 is load dst=3 addr=1 imm=0
instruction #22 is addi dst=1 src=1 imm=3
subtract immediate instruction with dst: 1 src: 1 and immediate: 1 at 23
instruction #24 is store src=3 addr=1 imm=0

Prove that:
value of cell 123 at time 25 = 5

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!