Prev: EAE3 Up: Map Next: EB01
EAEB: A condition matches. Process any actions in it.
Used by the routines at EABF, EB01, EB0F, EB79, EC4A, ECBC and EDC6.
Input
HL Pointer to the action table.
EAEB LD A,(HL) Put the next action in A.
EAEC INC HL Move to the next position in the table.
EAED CP $F6
EAEF JP Z,$EACB
EAF2 ADD A,A Double the action to get a word offset.
EAF3 LD E,A Put this in DE.
EAF4 LD D,$00
EAF6 PUSH HL Remember HL.
EAF7 LD HL,$E7F9 Add the base address of the action table. (E7F9)
EAFA ADD HL,DE
EAFB LD E,(HL) Put the address found in DE.
EAFC INC HL
EAFD LD D,(HL)
EAFE POP HL Restore HL.
EAFF PUSH DE Jump to the action pointed to by DE.
EB00 RET
Prev: EAE3 Up: Map Next: EB01