Display Finished Drawing Characters

If the display has finished drawing, then the display sets memory cell #27 to 0. More formally,

if the following are true:
  • value of cell 27 at time t = 1
  • number of characters read at t = value of cell 26 at time t

then value of cell 27 at time (t + 1) = 0

If the "number of characters read" is equal to the data size stored in cell #26, then the display has finished drawing characters on the screen. Thus, the display sets cell 27 to 0 and idles until the computer sets cell 27 to 1 again in the future.

For example, suppose that the following is true:

  • value of cell 27 at time 12 = 1
  • number of characters read at 12 = 1
  • value of cell 26 at time 12 = 1

Since the "number of characters read" is equal to the value in cell #26, we can conclude: value of cell 27 at time 13 = 0

Try running the simulator below to see the display set cell #27 to 0 after it is done.

Time: 0
LW Computer IO Simulator

Comments

Please log in to add comments