![]() |
Routines |
| Prev: 27166 | Up: Map | Next: 27199 |
| 27170 | LD A,0 | Reset the active guard counter. | ||
| 27172 | LD (27402),A | |||
| 27175 | LD HL,0 | Initialise the first guard countdown timer to zero. | ||
| 27178 | LD (28070),HL | |||
| 27181 | LD A,(31842) | Pick up the game speed parameter (1-8) in A. | ||
| 27184 | LD H,A | HL=256*A. | ||
| 27185 | LD (28072),HL | Initialise the second guard countdown timer. | ||
| 27188 | SLA H | Double HL. | ||
| 27190 | LD (28074),HL | Initialise the third guard countdown timer. | ||
| 27193 | SLA H | Double HL again. | ||
| 27195 | LD (28076),HL | Initialise the fourth guard countdown timer. | ||
| 27198 | RET | |||
| Prev: 27166 | Up: Map | Next: 27199 |