Prev: A79F Up: Map Next: A7E8
A7D4: Handler: Orchid Position
Used by the routines at A630 and A763.
Input
IX Actor Entity
Output
HL Pointer to Orchid Position
HandlerOrchidPosition A7D4 PUSH BC Stash BC on the stack.
Fetch the Room ID from the layout map.
A7D5 LD L,(IX+$01) Create an offset with IX+01 (current location).
A7D8 LD H,$00
A7DA LD BC,$6066 HL=Layout + offset.
A7DD ADD HL,BC
Fetch the orchid position from the orchid position table.
A7DE LD L,(HL) Create an offset.
A7DF LD H,$00
A7E1 ADD HL,HL HL=TableOrchidPositions + (offset * 02).
A7E2 LD BC,$D6A6
A7E5 ADD HL,BC
A7E6 POP BC Restore BC from the stack.
A7E7 RET Return.
Prev: A79F Up: Map Next: A7E8