Prev: 9538 Up: Map Next: 95A6
9584: Return an attribute address given co-ordinates
Used by the routine at 9538.
Input
DE Co-ordinates to convert
HL The attribute address
9584 PUSH AF
9585 PUSH HL
9586 LD A,$BF
9588 SUB H
9589 LD H,$00
958B EX DE,HL
958C LD HL,$5800
958F SRL E
9591 SRL E
9593 SRL E
9595 ADD HL,DE
9596 AND $F8
9598 SLA A
959A RL D
959C SLA A
959E RL D
95A0 LD E,A
95A1 ADD HL,DE
95A2 EX DE,HL
95A3 POP HL
95A4 POP AF
95A5 RET
Prev: 9538 Up: Map Next: 95A6