Cursor's Y Position At the End
If the display is in the last line, then the cursor's y position stays the same, even after the last line is full. More formally,
if cursor y at time t = 11, then cursor y at time (t + 1) = cursor y at time t
For example,
if cursor y at time 18 = 11, then cursor y at time (18 + 1) = cursor y at time 18
This simplifies to:
cursor y at time 19 = 11
At the bottom of the screen, the cursor's y position stays at the maximum value, and all the rows move up by one to make room for a new line.
Try running the simulator below. When the text completely fills the screen, the display rows move up by 1 and the cursor y value remains at 11.
Time: 0
LW Computer IO Simulator
Comments
Please log in to add comments