Prev: E677 Up: Map Next: E75A
E74A: Calls the event for the current room.
Input
Output
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 Next: E75A