Prev: 45219 Up: Map Next: 45254
45228: Initialise Character Timer
Used by the routines at PrintMessageAndInitialiseTimer and ResetClock.
Initialises character timing data by resetting the time ticker, setting the character's timer in the character table to zero, and initialising the character script cycles counter.
InitialiseCharacterTimer 45228 LD HL,0 Reset CurrentTime_Ticker to zero.
45231 LD (40925),HL
45234 LD IX,39008 Point to Table_Timetable.
45238 LD (IX+6),L Set the character's timer to zero.
45241 LD (IX+7),H
45244 INC HL Write 0001 to *CharacterScriptCycles.
45245 LD (40991),HL
45248 LD A,L Record the startup flag.
45249 LD (41178),A
45252 AND A Clear the carry so an idle character timer returns as not yet running.
45253 RET Return.
Prev: 45219 Up: Map Next: 45254