Prev: 9A4C Up: Map Next: 9BFF
9BDE: Convert a sprite's co-ordinates to a screen address
Used by the routine at 9A4C.
Input
HL Co-ordinates to look up
DE Holds the screen address on return
9BDE PUSH AF
9BDF PUSH DE
9BE0 LD A,$BF
9BE2 SUB H
9BE3 LD H,$00
9BE5 EX DE,HL
9BE6 LD HL,$5800
9BE9 SRL E
9BEB SRL E
9BED SRL E
9BEF ADD HL,DE
9BF0 AND $F8
9BF2 SLA A
9BF4 RL D
9BF6 SLA A
9BF8 RL D
9BFA LD E,A
9BFB ADD HL,DE
9BFC POP DE
9BFD POP AF
9BFE RET
Prev: 9A4C Up: Map Next: 9BFF