Prev: B844 Up: Map Next: B8BD
B845: routine33
Used by the routines at routine31 and routine32.
routine33 B845 LD A,(unknown54)
B848 OR $80
B84A LD (unknown54),A
This entry point is used by the routine at routine30.
routine33_0 B84D PUSH DE
B84E PUSH BC
B84F LD A,(unknown54)
B852 AND $7F
B854 CP $03
B856 JR Z,routine33_1
B858 CALL routine34
B85B JR routine33_2
routine33_1 B85D CALL routine34
B860 INC B
B861 CALL routine34
B864 DEC B
B865 DEC B
B866 CALL routine34
B869 INC B
B86A INC C
B86B CALL routine34
B86E DEC C
B86F DEC C
B870 CALL routine34
B873 LD A,(unknown48)
B876 AND $04
B878 JR Z,routine33_2
B87A INC B
B87B INC B
B87C DEC C
B87D CALL routine34
B880 INC C
B881 INC C
B882 INC B
B883 CALL routine34
B886 DEC B
B887 INC C
B888 INC C
B889 CALL routine34
B88C DEC B
B88D DEC B
B88E INC C
B88F CALL routine34
B892 DEC C
B893 DEC B
B894 DEC B
B895 CALL routine34
B898 DEC C
B899 DEC C
B89A DEC B
B89B CALL routine34
B89E INC B
B89F DEC C
B8A0 DEC C
B8A1 CALL routine34
B8A4 INC B
B8A5 INC B
B8A6 DEC C
B8A7 CALL routine34
routine33_2 B8AA POP BC
B8AB LD ($5C7D),BC
B8AF POP DE
B8B0 LD A,(unknown54)
B8B3 AND $7F
B8B5 LD (unknown54),A
B8B8 LD HL,unknown49
B8BB INC (HL)
B8BC RET
Prev: B844 Up: Map Next: B8BD