The following example shows that when a LOAD instruction with dst = 5 is executed, memory cell #2 stays unchanged.
Instructions
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
LW Computer Simulator
Quiz (1 point)
Given that:
instruction #0 is
load dst=5 addr=1 imm=1
the PC at time 0 = 0
Prove that:
value of cell 2 at time 1 = value of cell 2 at time 0
The following properties may be helpful:
- not (2 = 5)
- 0 + a = a
if the following are true:
- instruction #i is
load dst=dst addr=addr 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 0 + 1 = 1, then value of cell 2 at time (0 + 1) = value of cell 2 at time 1
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.