Prev: 42128 Up: Map Next: 42172
42155: 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 42155 PUSH DE Keep the character record, then call FetchLocationDataPointer to look up this room.
42156 PUSH IX
42158 CALL FetchLocationDataPointer
42161 PUSH IX Copy the record into the pointer and add 0001.
42163 POP HL
42164 LD DE,1
42167 ADD HL,DE
42168 POP IX Restore the saved character record and the saved source from the stack.
42170 POP DE
42171 RET Return.
View the equivalent code in;
Prev: 42128 Up: Map Next: 42172