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