This proof shows an ADDI instruction that adds the value in memory cell #1 and 5 and stores the result in memory cell #2. It starts with the ADDI Instruction Property and performs some basic algebra to compute the value of memory cell #2. For reference, here is the simulator:

Instructions
Memory Cells
Program Counter Time
0 0
LW Computer Simulator

Quiz (1 point)

Given that:
instruction #0 is addi dst=2 src=1 imm=5
the PC at time 0 = 0
value of cell 1 at time 0 = 4

Prove that:
value of cell 2 at time 1 = 9

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!