Prev: 42807 Up: Map Next: 42911
42851: Routine at A763
Used by the routines at 45524 and 48046.
Input
IX Actor Entity
42851 LD A,(IX+1) A=IX+1 (current location).
42854 CALL HandlerOrchidType Call HandlerOrchidType.
42857 LD DE,38874 DE=OrchidData.
42860 LD C,(HL) BC=the orchid type from HL.
42861 INC HL
42862 LD B,(HL)
42863 LD A,C A=C.
42864 AND %00000111 Keep only bits 0-2.
42866 OR %01001000 Set bits 3 and 6.
42868 LD (DE),A
42869 INC DE
42870 LD A,(IX+1)
42873 LD (DE),A
42874 INC DE
42875 LD A,C
42876 AND %00001000 Keep only bit 3.
42878 LD (DE),A
42879 INC DE
42880 CALL HandlerOrchidPosition Call HandlerOrchidPosition.
42883 LD A,(HL)
42884 INC HL
42885 LD (DE),A
42886 INC DE
42887 LD A,(HL)
42888 LD (DE),A
42889 INC DE
42890 LD A,B
42891 AND %00000111 Keep only bits 0-2.
42893 OR %01000000 Set bit 6.
42895 LD (DE),A
42896 INC DE
42897 LD A,B
42898 AND %11111000 Keep only bits 3-7.
42900 LD (DE),A
42901 INC DE
42902 LD A,C
42903 RRCA
42904 RRCA
42905 RRCA
42906 RRCA
42907 AND %00001111 Keep only bits 0-3.
42909 LD (DE),A
42910 RET Return.
Prev: 42807 Up: Map Next: 42911