Prev: A763 Up: Map Next: A7D4
A79F: Routine at A79F
Used by the routine at BBAE.
A79F LD A,($96AB) A=96AB.
A7A2 CALL HandlerOrchidType Call HandlerOrchidType.
A7A5 PUSH IX
A7A7 LD IX,$97DA IX=OrchidData.
A7AB LD A,(IX+$00)
A7AE AND %00000111 Keep only bits 0-2.
A7B0 LD C,A
A7B1 LD A,(IX+$02)
A7B4 AND %00001000 Keep only bit 3.
A7B6 OR C
A7B7 LD C,A
A7B8 LD A,(IX+$07)
A7BB RLCA
A7BC RLCA
A7BD RLCA
A7BE RLCA
A7BF AND %11110000 Keep only bits 4-7.
A7C1 OR C
A7C2 LD (HL),A
A7C3 INC HL
A7C4 LD A,(IX+$05)
A7C7 AND %00000111 Keep only bits 0-2.
A7C9 LD B,A
A7CA LD A,(IX+$06)
A7CD AND %11111000 Keep only bits 3-7.
A7CF OR B
A7D0 LD (HL),A
A7D1 POP IX
A7D3 RET Return.
Prev: A763 Up: Map Next: A7D4