Prev: 58720 Up: Map Next: 58817
58764: Copy The Clock Link
Used by the routine at FindCharacterSavedPointer.
Compares the current record with the clock workspace and copies the link kept beside the clock. Run by 51812 after the display record at 58760. A non-zero return means the script step succeeded.
CopyClockLink 58764 PUSH IX Call IncrementPointerAndCompare to step pointer and compare.
58766 POP DE
58767 LD IY,40933
58771 CALL IncrementPointerAndCompare
58774 LD L,(IX-2) Read the pointer saved ahead of this record.
58777 LD H,(IX-1)
58780 LD (IY-2),L Store the low byte of the pointer in the previous record.
58783 LD (IY-1),H Store it in the schedule entry, then call ProcessMemoryEntry to run memory entry.
58786 CALL ProcessMemoryEntry
58789 OR %00000001 Reset the zero flag.
58791 RET Return.
Reached from the script commands at 59222, 59270, 59284, 59292, 59356, 60624, 61328, 61532, 61573, 61759, 61842, 62143, 62173, 62228 and 62287, run by DispatchCharacterScript.
Named from the script commands at 59222, 59270, 59284, 59292, 59356, 60624, 61328, 61532, 61573, 61759, 61842, 62143, 62173, 62228 and 62287.
58792 DEFB 0,16 Display record read by ProcessDisplayRecord: flags 0 value 16.
Run by 51812 after the display record at 58792.
58794 OR %00000001 Reset the zero flag.
58796 RET Return.
58797 DEFB 76,4,177,229 Display record read by ProcessDisplayRecord: flags 76 value 4 handler 58801.
Reached through the display record at 58797, dispatched by DispatchLookedUpHandlerThird.
Run by 51812 after the display record at 58797.
58801 LD IX,(40979) Read the current object.
58805 LD A,(41013) Compare the room graphics parameter with the character's attribute.
58808 CP (IX+15)
58811 JP NZ,ParseInputNumber_ReturnZero Go to ParseInputNumber_ReturnZero if the room graphics parameter does not match it.
58814 OR %00000001 Reset the zero flag.
58816 RET Return.
Prev: 58720 Up: Map Next: 58817