Disk Read Finished
If the disk has finished copying data into memory, then interrupt the computer. More formally,
if the following are true:
- value of cell 49 at time t = 1
- disk bytes read at time t = value of cell 46 at time t
- value of cell 48 at time t = 0
then interrupt at index: 1 time: (t + 1) = 1
Setting the interrupt cell #1 to 1 indicates to the computer that the disk has finished the read operation.
For example,
if the following are true:
- disk bytes read at time 165 = 3
- value of cell 46 at time 165 = 3
- value of cell 48 at time 165 = 0
- value of cell 49 at time 165 = 1
then interrupt at index: 1 time: (165 + 1) = 1
Thus, the interrupt cell #1 value time 166 is 1.
Try running the simulator below to see interrupt cell #1 change to 1.
Time: 0
LW Computer IO Simulator
Comments
Please log in to add comments