Prev: AC02 Up: Map Next: ACAD
AC9A: Get Room Pointer
Used by the routines at Handler_RoomExits and F8DD.
Output
HL Pointer to the room data
GetRoomPointer AC9A LD A,($A7C3) Load the *CurrentRoom into DE.
AC9D LD E,A
AC9E LD D,$00
ACA0 LD H,D Copy it into HL.
ACA1 LD L,E
ACA2 ADD HL,DE Mulitply by 06.
ACA3 ADD HL,DE
ACA4 ADD HL,DE
ACA5 ADD HL,DE
ACA6 ADD HL,DE
ACA7 LD DE,($A7CA) Add the result to the base address *Pointer_RoomMap, stored in HL.
ACAB ADD HL,DE
ACAC RET Return.
Prev: AC02 Up: Map Next: ACAD