Prev: 42172 Up: Map Next: 42208
42189: Compare Location Data
Used by the routine at ProcessDisplayPointer.
Compares the two room records from the exit field onward and reports whether they match.
CompareLocationData 42189 PUSH DE Save DE, HL and IY, then point HL six bytes further on (0006).
42190 PUSH HL
42191 PUSH IY
42193 LD DE,6
42196 ADD HL,DE
42197 ADD IY,DE Call ReadScriptPosition to read the script position.
42199 CALL ReadScriptPosition
42202 JR NZ,CompareFollowingFields_0 Jump to CompareFollowingFields_0 when the script position does not match, and otherwise restore the records this test used.
42204 POP IY
42206 POP HL
42207 POP DE
Prev: 42172 Up: Map Next: 42208