The following example shows that when a STORE instruction with src = 5, addr = 1, and imm = 1 is executed, memory cell #4 is updated to a new value (9), but other cells, such as cell #2, remain unchanged.
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
Quiz (1 point)
store src=5 addr=1 imm=1
- 3 + 1 = 4
- not (2 = 4)
- 0 + a = a
if value of cell 1 at time 0 = 3, then (value of cell 1 at time 0) + 1 = 3 + 1
if the following are true:
- a = b
- b = c
then a = c
if (value of cell 1 at time 0) + 1 = 4, then 2 = (value of cell 1 at time 0) + 1 = 2 = 4
if 2 = (value of cell 1 at time 0) + 1 = 2 = 4, then not (2 = (value of cell 1 at time 0) + 1) = not (2 = 4)
if the following are true:
- a
- b = a
then b
if the following are true:
- instruction #i is
store src=src addr=addr imm=imm
- the PC at time t = i
- not (other = (value of cell addr at time t) + imm)
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.