Prev: 46382 Up: Map Next: 46443
46424: Next Pixel Row
Moves down by one pixel row in the display file.
Input
HL Screen address
Output
HL Screen address one pixel row down
NextPixelRow 46424 INC H Move down one pixel row within the character.
46425 LD A,H Test whether that has moved into the next character row.
46426 AND 7
46428 RET NZ Return if it has not.
46429 LD A,H Move back to the top pixel row of the character.
46430 SUB 8
46432 LD H,A
46433 LD A,L Move down by one character row.
46434 ADD A,32
46436 LD L,A
46437 RET NC Return if that did not move into the next third of the display.
46438 LD A,H Otherwise move on to the next third.
46439 ADD A,8
46441 LD H,A
46442 RET Return.
Prev: 46382 Up: Map Next: 46443