Prev: CEAB Up: Map Next: CEC4
CEAD: Perform special actions
Used by the routine at C800.
CEAD LD B,$03 Number of rooms to check.
CEAF LD HL,$CEA4 Point HL to the first action.
CEB2 LD A,($CFCA) Get the current room. (CFCA)
CEB5 CP (HL) Is the special action in this room?
CEB6 JR Z,$CEBE Jump forward if it is.
CEB8 INC HL Move to the next entry.
CEB9 INC HL
CEBA INC HL
CEBB DJNZ $CEB5 Loop until all actions have been considered.
CEBD RET
A special action was found in this room, so act on it.
CEBE INC HL Put the pointer to the action in HL.
CEBF LD A,(HL)
CEC0 INC HL
CEC1 LD H,(HL)
CEC2 LD L,A
CEC3 JP (HL) Do it.
Prev: CEAB Up: Map Next: CEC4