JUMP Instruction Property 2
The jump (JUMP) instruction does not affect memory values. More formally:
if the following are true:
- instruction #i is
jump imm=jump_to
- the PC at time t = i
then value of cell x at time (t + 1) = value of cell x at time t
Here is an example where the first instruction is a JUMP instruction.
Instructions
Memory Cells |
---|
Program Counter | Time |
---|---|
0 | 0 |
LW Computer Simulator
Note that memory cell #3, among others, remains unchanged when the JUMP instruction is executed. In other words:
if the following are true:
- instruction #0 is
jump imm=2
- the PC at time 0 = 0
then value of cell 3 at time (0 + 1) = value of cell 3 at time 0
Comments
Please log in to add comments