Prev: BD32 Up: Map Next: BD4B
BD3A: Screen Address One Pixel Below
Used by the routine at ClearPixelBlock.
Moves down by one pixel line in the display file.
Input
HL Screen address
Output
HL Screen address one pixel line down
ScreenPosition1PixelBelow BD3A INC H Move down to the next pixel line in the character row.
BD3B LD A,H Return if that is still inside the character row.
BD3C AND $07
BD3E RET NZ
BD3F LD A,L Otherwise move on to the next character row in the third...
BD40 ADD A,$20
BD42 LD L,A
BD43 AND $E0 ...and return if that is still inside the third of the display.
BD45 RET Z
BD46 LD A,H Otherwise move on to the next third.
BD47 SUB $08
BD49 LD H,A
BD4A RET Return.
View the equivalent code in;
Prev: BD32 Up: Map Next: BD4B