Sending Data To Other Computers
If computer x's network device is active and the destination is computer y, then copy a value from computer x to computer y.
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 byte at ID: y, cell #(50 + (network bytes read from computer: x at time t)) at time (t + 1) = byte at ID: x, cell #(50 + (network bytes read from computer: x at time t)) at time t
For example, suppose that the following are true:
- network bytes read from computer: "B" at time 8 = 0
- byte at ID: "B", cell #50 at time 8 = 72
- byte at ID: "B", cell #66 at time 8 = 5
- byte at ID: "B", cell #67 at time 8 = 65
- byte at ID: "B", cell #68 at time 8 = 1
Network bytes read (0) is less than the data size (5).
Also, the destination is 65, which is the decimal value of A.
Thus we conclude that:
byte at ID: "A", cell #(50 + (network bytes read from computer: "B" at time 8)) at time (8 + 1) = byte at ID: "B", cell #(50 + (network bytes read from computer: "B" at time 8)) at time 8
After some substitutions and simplification, this becomes:
byte at ID: "A", cell #50 at time 9 = 72
click here for the full proof.
Try running the simulator below to see the network device copy a value from computer B to computer A.
Comments
Please log in to add comments