Prev: A7D4 Up: Map Next: A7F8
A7E8: Handler: Orchid Type
Used by the routines at A763 and A79F.
Input
A Location ID
Output
HL Pointer to Orchid Type
Fetch the Room ID from the layout map.
HandlerOrchidType A7E8 LD L,A Create an offset.
A7E9 LD H,$00
A7EB LD BC,$6066 HL=Layout + A.
A7EE ADD HL,BC
Fetch the orchid type from the orchid type table.
A7EF LD L,(HL) Create an offset using the room ID.
A7F0 LD H,$00
A7F2 ADD HL,HL HL=TableOrchidTypes + (offset * 02).
A7F3 LD BC,$A7F8
A7F6 ADD HL,BC
A7F7 RET Return.
Prev: A7D4 Up: Map Next: A7F8