Resetting the Interrupt
When an interrupt cell is set to 1, then the computer will flip the cell back to 0. More formally,
if interrupt at index: x time: t = 1, then interrupt at index: x time: (t + 1) = 0
When the interrupt is set, the computer will reset the interrupt to 0 so that the computer doesn't keep getting interrupted forever. For example, if interrupt cell #0 value remained at 1, then the PC will keep getting set to 10 indefinitely.
For example,
if interrupt at index: 0 time: 7 = 1, then interrupt at index: 0 time: (7 + 1) = 0
Since 7 + 1 = 8,
interrupt at index: 0 time: 8 = 0
Try running the simulator below and click any key to see interrupt cell #0 first change to 1 and then back to 0.
Comments
Please log in to add comments