Prev: 42964 Up: Map Next: 43000
42984: Handler: Orchid Type
Used by the routines at 42851 and 42911.
Input
A Location ID
Output
HL Pointer to Orchid Type
Fetch the Room ID from the layout map.
HandlerOrchidType 42984 LD L,A Create an offset.
42985 LD H,0
42987 LD BC,24678 HL=Layout + A.
42990 ADD HL,BC
Fetch the orchid type from the orchid type table.
42991 LD L,(HL) Create an offset using the room ID.
42992 LD H,0
42994 ADD HL,HL HL=TableOrchidTypes + (offset * 2).
42995 LD BC,43000
42998 ADD HL,BC
42999 RET Return.
Prev: 42964 Up: Map Next: 43000