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