![]() |
Routines |
| Prev: 7152 | Up: Map | Next: 7186 |
|
Used by the routine at MainLoop_NewPass.
Called by MainLoop when the frame counter has changed since the last frame update. Runs an extra pass over only the first four actor slots, which include Charlie and the sound effect actor, before carrying on with the pass which was in progress.
|
||||
| FrameUpdate | 7160 | DI | Disable interrupts. | |
| 7161 | LD A,($5C78) | Store FRAMES at LastFrame. | ||
| 7164 | LD ($5F22),A | |||
| 7167 | LD A,$01 | Set FrameUpdated to 01 (frame has updated). | ||
| 7169 | LD ($5F23),A | |||
| 716C | PUSH IX | Save the pointer to the current actor on the stack. | ||
| 716E | LD HL,$5F55 | Write ActorSpawnSlots to 71AC. | ||
| 7171 | LD ($71AC),HL | |||
|
Self modifying code; this changes the command at 71BE to JP FrameUpdateEnd, so that the extra pass ends there.
|
||||
| 7174 | LD A,$C3 | Write C3 to 71BE and FrameUpdateEnd to 71BF, i.e. JP FrameUpdateEnd. | ||
| 7176 | LD ($71BE),A | |||
| 7179 | LD HL,$7198 | |||
| 717C | LD ($71BF),HL | |||
| 717F | LD IX,$5F35 | Point IX at ActorCharlie. | ||
| 7183 | JP MainLoop | Jump to MainLoop. | ||
|
View the equivalent code in;
|
||||
| Prev: 7152 | Up: Map | Next: 7186 |