Pyjamarama | Routines |
Prev: E677 | Up: Map |
Used by the routines at Game_Start, Wally_Death, Wally_Resurrect, Wally_KnockedDown, Room_EventSixTimes, Action08_BoxingGloveSafe and Demo.
|
|||||||
Room_EventCaller | E74A | LD A,(Wally_RoomNo) | Calculate address of jump vector (room*2) + vectors. | ||||
E74D | ADD A,A | ||||||
E74E | LD E,A | ||||||
E74F | LD D,$00 | ||||||
E751 | LD HL,Room_UpdateVectors | ||||||
E754 | ADD HL,DE | ||||||
E755 | LD E,(HL) | Get address from vector table. | |||||
E756 | INC HL | ||||||
E757 | LD D,(HL) | ||||||
E758 | PUSH DE | Put it on the stack so return will call the vector and the vector will return to our original calling function. | |||||
E759 | RET |
Prev: E677 | Up: Map |