Prev: CA76 Up: Map Next: CA9E
CA7F: Read The Character Timetable
Used by the routine at ProcessDisplayRecord.
Reads the character timetable and returns when Sherlock's disguise matches the character attribute.
ReadCharacterTimetable CA7F LD A,($9860) Call FetchObjectDataPointer to look up the character at Table_Timetable.
CA82 CALL FetchObjectDataPointer
CA85 LD A,($A009) Read Sherlock's disguise.
CA88 CP (IX+$0F) See whether it matches the character attribute.
CA8B RET Z Return if they match.
CA8C LD A,($A036) Save the current character and read the character at Table_Timetable.
CA8F PUSH AF
CA90 LD A,($9860)
CA93 LD ($A036),A Record the current character.
CA96 CALL DispatchScheduleMarker Call DispatchScheduleMarker to dispatch on the schedule marker.
CA99 POP AF
CA9A LD ($A036),A Record the current character.
CA9D RET Return.
Prev: CA76 Up: Map Next: CA9E