Prev: B52E Up: Map Next: B56B
B558: 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 B558 INC H Move down one pixel row within the character.
B559 LD A,H Test whether that has moved into the next character row.
B55A AND $07
B55C RET NZ Return if it has not.
B55D LD A,H Move back to the top pixel row of the character.
B55E SUB $08
B560 LD H,A
B561 LD A,L Move down by one character row.
B562 ADD A,$20
B564 LD L,A
B565 RET NC Return if that did not move into the next third of the display.
B566 LD A,H Otherwise move on to the next third.
B567 ADD A,$08
B569 LD H,A
B56A RET Return.
Prev: B52E Up: Map Next: B56B