![]() |
Routines |
| Prev: 45219 | Up: Map | Next: 45254 |
|
Used by the routines at CheckCharacterState and 45219.
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 | Write 1 to *41178. | ||
| 45249 | LD (41178),A | |||
| 45252 | AND A | Clear the carry flag. | ||
| 45253 | RET | Return. | ||
| Prev: 45219 | Up: Map | Next: 45254 |