Instructions
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
LW Computer Simulator
Quiz (1 point)
Given that:
instruction #2 is
addi dst=4 src=0 imm=0
the PC at time 2 = 2
value of cell 1 at time 2 = 0
Prove that:
value of cell 1 at time 3 = 0
The following properties may be helpful:
- not (1 = 4)
- 2 + 1 = 3
if the following are true:
- instruction #i is
addi dst=dst src=src imm=imm
- the PC at time t = i
- not (other = dst)
then value of cell other at time (t + 1) = value of cell other at time t
- instruction #i is
if 2 + 1 = 3, then value of cell 1 at time (2 + 1) = value of cell 1 at time 3
if the following are true:
- a = b
- a = c
then b = c
if the following are true:
- a = b
- b = c
then a = c
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.