Prev: 9584 Up: Map Next: 95C5
95A6: Return the location in the room buffer for a co-ordinate
Used by the routine at 9538.
Input
HL On entry, contains co-ordinates to convert. On exit, holds the location in the buffer
95A6 PUSH AF
95A7 PUSH DE
95A8 EX DE,HL
95A9 LD HL,$61A8
95AC LD A,D
95AD LD D,$00
95AF SRL E
95B1 SRL E
95B3 SRL E
95B5 ADD HL,DE
95B6 AND $F8
95B8 LD E,A
95B9 SLA E
95BB RL D
95BD SLA E
95BF RL D
95C1 ADD HL,DE
95C2 POP DE
95C3 POP AF
95C4 RET
Prev: 9584 Up: Map Next: 95C5