![]() |
Routines |
| Prev: 9B80 | Up: Map | Next: 9B93 |
|
Used by the routines at Action_UseTheOtherObject, Turn_RunTheActionHandler and Turn_RunTheHandlerIfPresent.
Finds an action handler. The copy count plus 10 is where the action list starts.
|
||||
| TableFindAnActionRecord | 9B81 | PUSH DE | Save DE, keep the action id in D, and read the copy count. | |
| 9B82 | LD D,A | |||
| 9B83 | LD A,(IX+$00) | |||
| 9B86 | ADD A,$10 | Add 10 to the copy count. The action list starts that far into the object. | ||
| 9B88 | LD E,A | Keep the copy count plus 10. | ||
| 9B89 | LD A,D | Use the result again. | ||
| 9B8A | LD D,$00 | The action-record offset's high byte is zero. | ||
| 9B8C | ADD IX,DE | Point IX at the action list, that far into the object. | ||
|
Find this id in the table at IX.
|
||||
| 9B8E | CALL IndexIdTable | Call IndexIdTable to look this id up in the table. | ||
| 9B91 | POP DE | Restore DE from the stack. | ||
| 9B92 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 9B80 | Up: Map | Next: 9B93 |