Prev: 62794 Up: Map Next: 62814
62805: Step Pen Down
Used by the routines at DrawingFill and DrawingLine.
Moves the pen one pixel down the screen. When E would wrap through 255 (below the bottom row) the pen stays put and the zero flag is set.
StepPenDown 62805 DEC E Move the pen down and return when it is still on screen.
62806 LD H,A
62807 LD A,E
62808 CP 255
62810 LD A,H
62811 RET NZ
62812 INC E The pen passed the bottom row, so step back.
62813 RET Return.
View the equivalent code in;
Prev: 62794 Up: Map Next: 62814