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