![]() |
Routines |
| Prev: F41A | Up: Map | Next: F450 |
|
Used by the routine at RunHandlers.
|
||||
| ProcessMonsters | F434 | LD HL,$D238 | HL=D238. | |
|
Work backwards from Ralph to George.
|
||||
| F437 | LD A,$03 | Write 03 (Ralph) to *Temp_MonsterID. | ||
| ProcessMonsters_Loop | F439 | LD ($DF45),A | ||
| F43C | PUSH AF | Stash the current monster ID and HL on the stack. | ||
| F43D | PUSH HL | |||
| F43E | LD A,(HL) | If *HL is not at the terminator jump to F450. | ||
| F43F | CP $FF | |||
| F441 | CALL NZ,$F450 | |||
| F444 | POP HL | Restore HL and the current monster ID from the stack. | ||
| F445 | POP AF | |||
| F446 | DEC HL | Decrease HL by six. | ||
| F447 | DEC HL | |||
| F448 | DEC HL | |||
| F449 | DEC HL | |||
| F44A | DEC HL | |||
| F44B | DEC HL | |||
| F44C | DEC A | Decrease current monster ID by one. | ||
| F44D | JR NZ,ProcessMonsters_Loop | Jump to ProcessMonsters_Loop until all monsters have been processed. | ||
| F44F | RET | Return. | ||
| Prev: F41A | Up: Map | Next: F450 |