Prev: A0AE Up: Map Next: A0C8
A0BA: The word for a direction
Used by the routines at EXITS_THROUGH, VISIBLE_EXITS and ELROND_READS_MAP.
Input
A The direction, 1 to 10 (bit 7 ignored)
Output
DE Its word reference, from DIRECTION_WORDS
DIRECTION_WORD A0BA LD HL,$A20E
This entry point is used by the routine at SAY_STATE.
WORD_FROM_TABLE A0BD LD E,A
A0BE RES 7,E
A0C0 LD D,$00
A0C2 ADD HL,DE
A0C3 ADD HL,DE
A0C4 LD E,(HL)
A0C5 INC HL
A0C6 LD D,(HL)
A0C7 RET
Prev: A0AE Up: Map Next: A0C8