In this example, the JAL instruction causes the computer to store the current PC value + 1 in memory cell #2.
Instructions
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
LW Computer Simulator
Quiz (1 point)
Given that:
instruction #5 is a JAL instruction with jump to: 1
the PC at time 2 = 5
Prove that:
value of cell 2 at time 3 = 6
The following properties may be helpful:
- 5 + 1 = 6
- 2 + 1 = 3
if the following are true:
- instruction #i is a JAL instruction with jump to: jump_to
- the PC at time t = i
then value of cell 2 at time (t + 1) = i + 1
if 2 + 1 = 3, then value of cell 2 at time (2 + 1) = value of cell 2 at time 3
if the following are true:
- a = b
- b = c
then a = c
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.