Prev: B8B9 Up: Map Next: B989
B8E6: Routine at B8E6
Used by the routine at StartGame.
B8E6 LD DE,$F060
B8E9 LD A,($B971)
B8EC AND $7F
B8EE LD B,A
B8EF LD A,(IX+$0C)
B8F2 SUB B
B8F3 CP $09
B8F5 JR NC,$B906
B8F7 LD A,(IX+$0C)
B8FA SUB $0B
B8FC LD B,A
B8FD LD A,($B971)
B900 AND $80
B902 OR B
B903 LD ($B971),A
B906 LD A,(IX+$02)
B909 ADD A,B
B90A LD C,A
B90B RRA
B90C RRA
B90D RRA
B90E AND $1F
B910 ADD A,E
B911 LD E,A
B912 LD A,C
B913 AND $07
B915 LD HL,$B969
B918 CALL PrintLine_9
B91B LD A,(DE)
B91C AND (HL)
B91D LD (DE),A
B91E LD A,(IX+$02)
B921 LD E,A
B922 LD A,(IX+$0C)
B925 ADD A,E
B926 SUB B
B927 DEC A
B928 LD C,A
B929 RRA
B92A RRA
B92B RRA
B92C AND $1F
B92E ADD A,$60
B930 LD E,A
B931 LD A,C
B932 AND $07
B934 LD HL,$B969
B937 CALL PrintLine_9
B93A LD A,(DE)
B93B AND (HL)
B93C LD (DE),A
B93D LD A,($B971)
B940 BIT 7,A
B942 RES 7,A
B944 JR Z,$B951
B946 DEC A
B947 CP $09
B949 JR Z,$B95B
B94B OR $80
B94D LD ($B971),A
B950 RET
B951 INC A
B952 LD B,A
B953 LD A,(IX+$0C)
B956 SUB B
B957 CP $0A
B959 JR NZ,$B964
B95B LD A,($B971)
B95E XOR $80
B960 LD ($B971),A
B963 RET
B964 LD A,B
B965 LD ($B971),A
B968 RET
B969 LD A,A
B96A CP A
B96B RST $18
B96C RST $28
B96D RST $30
B96E EI
B96F DEFB $FD
B970 CP $0E
B972 NOP
B973 LD BC,$733A
B976 CP C
B977 AND A
B978 RET NZ
B979 LD DE,$B989
B97C LD B,$02
B97E CALL $B796
B981 LD D,$00
B983 CALL $97D3
B986 JP $97AD
Prev: B8B9 Up: Map Next: B989