This proof shows that when an ADD instruction is executed, the Program Counter (PC) increments by 1. Specifically, when the PC is 1, it is incremented to 2.

Note that src1 src2, and dst are left as variables because these values do not affect the PC. In other words, this property is true regardless of the values of src1, src2, and dst.

For reference, here is the simulator. We cannot use variable values in the simulator so src1, src2, and dst are given numerical values.

Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

Quiz (1 point)

Given that:
instruction #1 is add dst=dst src1=src1 src2=src2
the PC at time 1 = 1

Prove that:
the PC at time 2 = 2

The following properties may be helpful:

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.

Step Claim Reason (optional) Error Message (if any)
1
2
3
4
5
6
7
8
9
10

Become a subscriber to save your progress, see the correct answer, and more!