Prev: D278 Up: Map Next: D29D
D288: Look Up Object And Test Moved Marker
Used by the routine at D278.
Looks the object up and keeps searching while the moved marker is not the end.
LookUpObjectAndTestMovedMarker D288 CALL FetchObjectDataPointer Call FetchObjectDataPointer to look that object up.
D28B PUSH AF Jump to LookUpObjectAndTestMovedMarker_Next if the moved marker is FF.
D28C LD A,(IX+$01)
D28F CP $FF
D291 JR Z,LookUpObjectAndTestMovedMarker_Next
D293 POP IX Drop the saved value and jump back to LookUpObjectAndTestMovedMarker while the moved marker does not match the character.
D295 CP (HL)
D296 JR NZ,LookUpObjectAndTestMovedMarker
D298 SCF Mark the condition as met.
D299 RET Return.
Clear the carry so a character id outside the range returns as no match.
LookUpObjectAndTestMovedMarker_Next D29A POP AF Restore the saved flags from the stack.
D29B AND A Report that the id was not found.
D29C RET Return.
View the equivalent code in;
Prev: D278 Up: Map Next: D29D