Prev: BC74 Up: Map Next: BF85
BDE4: Routine at BDE4
Used by the routines at BC74, BF85, C2E7, C33E, C3FB, C98F and CA6F.
BDE4 PUSH DE
BDE5 PUSH AF
BDE6 CALL $BDEC
BDE9 POP AF
BDEA POP DE
BDEB RET
BDEC LD A,H
BDED AND $07
BDEF CP $07
BDF1 JP Z,$BDF6
BDF4 INC H
BDF5 RET
BDF6 LD A,L
BDF7 AND $E0
BDF9 CP $E0
BDFB JP Z,$BE05
BDFE LD DE,$06E0
BE01 AND A
BE02 SBC HL,DE
BE04 RET
BE05 LD A,H
BE06 CP $57
BE08 RET Z
BE09 LD DE,$0020
BE0C ADD HL,DE
BE0D RET
This entry point is used by the routines at BC74, BF85, C3FB, C98F and CA6F.
BE0E PUSH DE
BE0F PUSH AF
BE10 CALL $BE16
BE13 POP AF
BE14 POP DE
BE15 RET
BE16 LD A,H
BE17 AND $07
BE19 JP Z,$BE1E
BE1C DEC H
BE1D RET
BE1E LD A,L
BE1F AND $E0
BE21 JP Z,$BE29
BE24 LD DE,$06E0
BE27 ADD HL,DE
BE28 RET
BE29 LD A,H
BE2A CP $40
BE2C RET Z
BE2D LD DE,$0020
BE30 AND A
BE31 SBC HL,DE
BE33 RET
This entry point is used by the routine at BC74.
BE34 LD HL,$6DA0
BE37 LD ($5B6B),HL
BE3A LD A,$05
BE3C LD ($5B6D),A
BE3F RET
This entry point is used by the routine at BC74.
BE40 LD HL,$6D60
BE43 LD ($5B6B),HL
BE46 LD A,$01
BE48 LD ($5B6D),A
BE4B RET
This entry point is used by the routine at BC74.
BE4C LD HL,($5B68)
BE4F XOR A
BE50 LD ($5B73),A
BE53 LD A,($5B6A)
BE56 RLC A
BE58 CALL C,$BE8E
BE5B LD C,A
BE5C LD B,$0F
BE5E LD A,(HL)
BE5F AND C
BE60 JP NZ,$BE69
BE63 CALL $BDE4
BE66 DJNZ $BE5E
BE68 RET
BE69 PUSH HL
BE6A LD A,$01
BE6C LD ($5B73),A
BE6F CALL $C146
BE72 LD A,(HL)
BE73 POP HL
BE74 AND $07
BE76 CP $03
BE78 JP Z,$BE63
BE7B CP $04
BE7D JP Z,$BE63
BE80 CP $05
BE82 JP Z,$BE63
BE85 LD A,$00
BE87 LD ($5B73),A
BE8A CALL $C289
BE8D RET
BE8E DEC HL
BE8F RET
This entry point is used by the routine at BC74.
BE90 LD HL,($5B68)
BE93 XOR A
BE94 LD ($5B74),A
BE97 INC HL
BE98 LD A,($5B6A)
BE9B LD C,A
BE9C LD B,$0F
BE9E LD A,(HL)
BE9F AND C
BEA0 JP NZ,$C153
This entry point is used by the routine at BF85.
BEA3 CALL $BDE4
BEA6 DJNZ $BE9E
BEA8 RET
This entry point is used by the routine at BC74.
BEA9 LD HL,($5B68)
BEAC XOR A
BEAD LD ($5B75),A
BEB0 CALL $BE0E
BEB3 CALL $BE0E
BEB6 LD A,($5B6A)
BEB9 LD C,A
BEBA LD B,$08
BEBC LD A,(HL)
BEBD AND C
BEBE JP NZ,$C177
This entry point is used by the routine at BF85.
BEC1 RRC C
BEC3 CALL C,$BEC9
BEC6 DJNZ $BEBC
BEC8 RET
BEC9 INC HL
BECA RET
This entry point is used by the routine at BC74.
BECB LD HL,($5B68)
BECE LD B,$10
BED0 CALL $BDE4
BED3 DJNZ $BED0
BED5 LD A,($5B6A)
BED8 LD C,A
BED9 LD B,$08
BEDB LD A,(HL)
BEDC AND C
BEDD RET NZ
BEDE RRC C
BEE0 CALL C,$BEC9
BEE3 DJNZ $BEDB
BEE5 CALL $BD9B
BEE8 CALL $BDA5
BEEB LD A,($5B94)
BEEE DEC A
BEEF LD ($5B94),A
BEF2 CALL Z,$C9B4
BEF5 LD A,($5B95)
BEF8 AND A
BEF9 RET Z
BEFA LD B,$0F
BEFC LD A,$10
BEFE OUT ($FE),A
BF00 LD A,$0A
BF02 DEC A
BF03 JP NZ,$BF02
BF06 LD A,$00
BF08 OUT ($FE),A
BF0A LD A,$0A
BF0C DEC A
BF0D JP NZ,$BF0C
BF10 DJNZ $BEFC
BF12 JP $BECB
This entry point is used by the routines at BC74 and CA6F.
BF15 XOR A
BF16 LD ($5B7B),A
BF19 LD A,($5B6D)
BF1C CP $05
BF1E JP C,$BF49
BF21 LD B,$17
BF23 PUSH BC
BF24 CALL $BD51
BF27 CALL $BD88
BF2A CALL $BDA5
BF2D CALL $BF71
BF30 LD A,($5B94)
BF33 DEC A
BF34 LD ($5B94),A
BF37 CALL Z,$C9B4
BF3A POP BC
BF3B LD A,($5B7B)
BF3E CP $01
BF40 RET Z
BF41 LD A,($5B95)
BF44 AND A
BF45 RET Z
BF46 DJNZ $BF23
BF48 RET
BF49 LD B,$17
BF4B PUSH BC
BF4C CALL $BD1F
BF4F CALL $BD88
BF52 CALL $BDA5
BF55 CALL $BF71
BF58 LD A,($5B94)
BF5B DEC A
BF5C LD ($5B94),A
BF5F CALL Z,$C9B4
BF62 POP BC
BF63 LD A,($5B7B)
BF66 CP $01
This entry point is used by the routine at CA6F.
BF68 RET Z
BF69 LD A,($5B95)
BF6C AND A
BF6D RET Z
BF6E DJNZ $BF4B
BF70 RET
This entry point is used by the routine at BC74.
BF71 CALL $BE4C
BF74 LD A,($5B90)
BF77 AND A
BF78 RET Z
BF79 CALL $BE90
BF7C LD A,($5B90)
BF7F AND A
BF80 RET Z
BF81 CALL $BEA9
BF84 RET
Prev: BC74 Up: Map Next: BF85