Prev: D64F Up: Map Next: D663
D659: Move Up Row
Used by the routine at DrawTownPanel.
Moves a screen address up by one row of characters.
Input
HL The screen address
Output
HL The new screen address
MoveUpRow D659 LD A,L Subtract thirty-two from the low byte.
D65A SUB $20
D65C LD L,A
D65D RET NC Return if it has not gone into the previous third.
D65E LD A,H Subtract eight from the high byte.
D65F SUB $08
D661 LD H,A
D662 RET Return.
Prev: D64F Up: Map Next: D663