Resetting the Display Character Count
If the display has finished drawing, then reset the number of characters read 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 number of characters read at (t + 1) = 0
Reset the number of characters read so that the next time the computer asks the display to draw characters, the count starts at 0.
For example,
- 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: number of characters read at 13 = 0
Try running the simulator below to see the display reset "characters read" after it is done.
Time: 0
LW Computer I/O Simulator
Comments
Please log in to add comments