Prev: 9B44 Up: Map Next: 9B80
9B6C: Call the routine at HL, if there is one
Used by the routines at MOVE, DO_ACTION, END_OF_TURN, SCRIPT_DO and SWAPPED_OBJECTS.
Keeps every register pair the caller has, IX and IY included, and does nothing for an address of zero.
Input
HL The routine, or 0
RUN_ROUTINE 9B6C PUSH IX
9B6E PUSH IY
9B70 PUSH DE
9B71 PUSH BC
9B72 PUSH HL
9B73 LD A,L HL not zero? Call it through JUMP_HL
9B74 OR H
9B75 CALL NZ,JUMP_HL
9B78 POP HL
9B79 POP BC
9B7A POP DE
9B7B POP IY
9B7D POP IX
9B7F RET
Prev: 9B44 Up: Map Next: 9B80