![]() |
Routines |
| Prev: 39808 | Up: Map | Next: 39827 |
|
Used by the routines at Action_UseTheOtherObject, Turn_RunTheActionHandler and Turn_RunTheHandlerIfPresent.
Finds an action handler. The copy count plus 16 is where the action list starts.
|
||||
| TableFindAnActionRecord | 39809 | PUSH DE | Save DE, keep the action id in D, and read the copy count. | |
| 39810 | LD D,A | |||
| 39811 | LD A,(IX+0) | |||
| 39814 | ADD A,16 | Add 16 to the copy count. The action list starts that far into the object. | ||
| 39816 | LD E,A | Keep the copy count plus 16. | ||
| 39817 | LD A,D | Use the result again. | ||
| 39818 | LD D,0 | The action-record offset's high byte is zero. | ||
| 39820 | ADD IX,DE | Point IX at the action list, that far into the object. | ||
|
Find this id in the table at IX.
|
||||
| 39822 | CALL IndexIdTable | Call IndexIdTable to look this id up in the table. | ||
| 39825 | POP DE | Restore DE from the stack. | ||
| 39826 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 39808 | Up: Map | Next: 39827 |