Prev: A490 Up: Map Next: A4BC
A4AB: Point To Location Data Plus One
Used by the routine at ProcessLocationDataIfValid.
Points one byte past the room record for the id just looked up.
Input
A Room ID
Output
HL Pointer to location data + 1
PointToLocationDataPlusOne A4AB PUSH DE Keep the character record, then call FetchLocationDataPointer to look up this room.
A4AC PUSH IX
A4AE CALL FetchLocationDataPointer
A4B1 PUSH IX Copy the record into the pointer and add 0001.
A4B3 POP HL
A4B4 LD DE,$0001
A4B7 ADD HL,DE
A4B8 POP IX Restore the saved character record and the saved source from the stack.
A4BA POP DE
A4BB RET Return.
View the equivalent code in;
Prev: A490 Up: Map Next: A4BC