Prev: 8141 Up: Map Next: 8151
8148: Drawing: Retreat The High Coordinate
Used by the routines at DrawingSetup and Drawing_PlotTheSelectedPixel.
Retreats the high coordinate. When it was already zero, it is put back and one step is counted.
Drawing_RetreatTheHighCoordinate 8148 DEC D Step the high coordinate back and return unless it wrapped to FF.
8149 LD H,A
814A LD A,D
814B CP $FF
814D LD A,H
814E RET NZ
814F INC D Put the high coordinate back to 00.
8150 RET Return.
View the equivalent code in;
Prev: 8141 Up: Map Next: 8151