Prev: F54A Up: Map Next: F55E
F555: Step Pen Down
Used by the routines at DrawingFill and DrawingLine.
Moves the pen one pixel down the screen. When E would wrap through FF (below the bottom row) the pen stays put and the zero flag is set.
StepPenDown F555 DEC E Move the pen down and return when it is still on screen.
F556 LD H,A
F557 LD A,E
F558 CP $FF
F55A LD A,H
F55B RET NZ
F55C INC E The pen passed the bottom row, so step back.
F55D RET Return.
View the equivalent code in;
Prev: F54A Up: Map Next: F55E