Disk Interrupted Computer

If the storage device interrupts the computer, then set the PC to 2. More formally,

if interrupt at index: 1 time: t = 1, then the PC at time (t + 1) = 2

The storage device is connected to interrupt cell #1. The computer programmer should ensure that the storage interrupt processing instructions begin at instruction #2.

For example, if interrupt at index: 1 time: 166 = 1, then the PC at time (166 + 1) = 2

Thus, the PC at time 167 is 2.

Try running the simulator below to see the computer jump to instruction #2 after the disk read operation is completed.

Time: 0
LW Computer IO Simulator

Comments

Please log in to add comments