Prev: B0A3 Up: Map Next: B0C6
B0AC: 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 B0AC LD HL,$0000 Reset CurrentTime_Ticker to zero.
B0AF LD ($9FDD),HL
B0B2 LD IX,$9860 Point to Table_Timetable.
B0B6 LD (IX+$06),L Set the character's timer to zero.
B0B9 LD (IX+$07),H
B0BC INC HL Write 0001 to *CharacterScriptCycles.
B0BD LD ($A01F),HL
B0C0 LD A,L Record the startup flag.
B0C1 LD ($A0DA),A
B0C4 AND A Clear the carry so an idle character timer returns as not yet running.
B0C5 RET Return.
Prev: B0A3 Up: Map Next: B0C6