Prev: 8117 Up: Map Next: 812B
8121: Drawing: Step Right One Pixel
Used by the routine at DrawingSetup.
Moves the screen address right one pixel, wrapping inside the line.
Drawing_StepRightOnePixel 8121 PUSH AF Step the screen address on and jump to Drawing_StepRightOnePixel_RestoreTheRightStep if it has not reached row 5A.
8122 INC HL
8123 LD A,H
8124 CP $5A
8126 JR NZ,Drawing_StepRightOnePixel_RestoreTheRightStep
8128 DEC HL Step the screen address back one byte.
Drawing_StepRightOnePixel_RestoreTheRightStep 8129 POP AF Restore AF from the stack.
812A RET Return.
View the equivalent code in;
Prev: 8117 Up: Map Next: 812B