Network Device Finished Sending Data

If the network has finished copying data, then set computer y's interrupt cell #2 to 1. More formally,

if the following are true:
  • byte at ID: x, cell #68 at time t = 1
  • byte at ID: x, cell #67 at time t = y_decimal
  • y in decimal = y_decimal
  • network bytes read from computer: x at time t = byte at ID: x, cell #66 at time t

then interrupt at computer: y index: 2 time: (t + 1) = 1

After the network device has finished copying data from computer x to computer y, interrupt computer y so that it will start processing the data that was sent from computer x.

For example, suppose that the following are true:

  • byte at ID: "B", cell #66 at time 13 = 5
  • byte at ID: "B", cell #67 at time 13 = 65
  • byte at ID: "B", cell #68 at time 13 = 1
  • network bytes read from computer: "B" at time 13 = 5

The number of bytes read is equal to the value at cell #66 (5), so the network device is finished. And the destination is 65, or "A." Thus:

interrupt at computer: "A" index: 2 time: (13 + 1) = 1

Which simplifies to:

interrupt at computer: "A" index: 2 time: 14 = 1

Try running the simulator below to see the network device copy values from computer B to computer A and then interrupt A.

Time: 0
LW Computer IO Simulator

Comments

Please log in to add comments