The following example shows that when a STORE instruction with src = 5, addr = 1, and imm = 1 is executed, the PC is incremented by 1.
Instructions
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
LW Computer Simulator
Quiz (1 point)
Given that:
instruction #0 is
store src=5 addr=1 imm=1
the PC at time 0 = 0
Prove that:
the PC at time 1 = 1
The following properties may be helpful:
- 0 + a = a
if the following are true:
- instruction #x is
store src=s addr=d imm=imm
- the PC at time t = x
then the PC at time (t + 1) = x + 1
- instruction #x is
if 0 + 1 = 1, then the PC at time (0 + 1) = the PC at time 1
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.