![]() |
Routines |
| Prev: A170 | Up: Map | Next: A19F |
|
Used by the routine at UpdateEnemies.
Jumps to the routine that handles an object, which is picked from the table at ObjectHandlers by the type of the object.
|
||||||||
| RunObjectHandler | A18D | LD A,(IX+$00) | Fetch the type of the object. | |||||
| A190 | SUB $13 | Take off 13, the first type with a handler. | ||||||
| A192 | LD E,A | Put the result in DE. | ||||||
| A193 | LD D,$00 | |||||||
| A195 | LD HL,$AF25 | Use the table of handlers. | ||||||
| A198 | ADD HL,DE | Add the offset twice to get the address of the entry. | ||||||
| A199 | ADD HL,DE | |||||||
| A19A | LD A,(HL) | Fetch the address of the handler into HL. | ||||||
| A19B | INC HL | |||||||
| A19C | LD H,(HL) | |||||||
| A19D | LD L,A | |||||||
| A19E | JP (HL) | Jump to the handler. | ||||||
| Prev: A170 | Up: Map | Next: A19F |