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