Instruction Pointer (IP)
The instruction pointer labelled IP contains the address of the instruction being executed. This is indicated by a red highlighted RAM position in the simulator. Each CPU command causes the IP to be increased by 1, 2 or 3 depending on the size of the command. In the RAM displays, the instruction pointer is highlighted red with yellow text.
NOP ; Increase IP by 1
INC BL ; Increase IP by 2
ADD AL,BL ; Increase IP by 3
JMP Rep ; Add or subtract a value from IP to
; jump to a new part of the program.
Share with your friends: |