Prev: 8BF1 Up: Map Next: 8C13
8BFC: Convert a Y co-ordinate to a screen address
Used by the routine at 8BC4.
Input
D Row to Convert
HL On exit, holds the screen address
8BFC LD A,D
8BFD AND $18
8BFF LD H,A
8C00 LD A,D
8C01 AND $07
8C03 SLA A
8C05 SLA A
8C07 SLA A
8C09 SLA A
8C0B SLA A
8C0D LD L,A
8C0E LD DE,$4000
8C11 ADD HL,DE
8C12 RET
Prev: 8BF1 Up: Map Next: 8C13