Prev: 39702 Up: Map Next: 39809
39788: Execute Action.
Used by the routines at Action_Dir, Action_Examine, 38579 and 40778.
Input
HL Pointer to the action code
TriggerAction 39788 PUSH IX Stash IX, IY, DE, BC and HL on the stack.
39790 PUSH IY
39792 PUSH DE
39793 PUSH BC
39794 PUSH HL
39795 LD A,L Call TriggerAction_Jump if HL is not empty (i.e. $0000).
39796 OR H
39797 CALL NZ,TriggerAction_Jump
39800 POP HL Restore HL, BC, DE, IY and IX from the stack.
39801 POP BC
39802 POP DE
39803 POP IY
39805 POP IX
39807 RET Return.
TriggerAction_Jump 39808 JP (HL) Indirect jump to the address held in HL.
Prev: 39702 Up: Map Next: 39809