Prev: FC0E Up: Map Next: FCF1
FC44: Routine at FC44
Used by the routine at PlayThemeTune.
FC44 PUSH AF
FC45 LD A,($FB53)
FC48 LD D,A
FC49 POP AF
FC4A CALL $FC67
FC4D CP $FF
FC4F JR Z,$FC7C
FC51 CP $C0
FC53 JP Z,$FCB9
FC56 LD B,$04
FC58 LD C,E
FC59 RLA
FC5A RLA
FC5B RLA
FC5C RLA
FC5D RLA
FC5E CALL C,$FC7C
FC61 CALL NC,PlayThemeTune_7
FC64 DJNZ $FC5D
FC66 RET
FC67 PUSH AF
FC68 LD A,($FB5D)
FC6B CPL
FC6C LD B,A
FC6D LD C,A
FC6E ADD A,$01
FC70 SRA A
FC72 SRA A
FC74 LD E,A
FC75 CP $00
FC77 JR NZ,$FC7A
FC79 INC E
FC7A POP AF
FC7B RET
FC7C PUSH AF
FC7D PUSH HL
FC7E PUSH BC
FC7F LD A,($FB54)
FC82 LD B,$00
FC84 LD HL,$03E8
FC87 RRC D
FC89 JP NC,$FCAB
FC8C INC HL
FC8D BIT 0,(HL)
FC8F JP Z,$FCA7
FC92 SET 4,A
FC94 XOR $83
FC96 XOR $83
FC98 OUT ($FE),A
FC9A NOP
FC9B DEC B
FC9C JP NZ,$FC87
FC9F DEC C
FCA0 JP NZ,$FC87
FCA3 POP BC
FCA4 POP HL
FCA5 POP AF
FCA6 RET
FCA7 RES 4,A
FCA9 JR $FC98
FCAB SCF
FCAC JP NC,$0000
FCAF JP NC,$0000
FCB2 JP NC,$0000
FCB5 NOP
FCB6 NOP
FCB7 JR $FC9A
FCB9 LD E,B
FCBA LD D,$00
FCBC LD HL,$FCF1
FCBF ADC HL,DE
FCC1 LD A,(HL)
FCC2 LD B,A
FCC3 LD HL,$0003
FCC6 PUSH BC
FCC7 LD DE,$0001
FCCA PUSH HL
FCCB CALL $FCD8
FCCE POP HL
FCCF LD DE,$00FF
FCD2 ADC HL,DE
FCD4 POP BC
FCD5 DJNZ $FCC6
FCD7 RET
FCD8 LD A,L
FCD9 SRL L
FCDB SRL L
FCDD CPL
FCDE AND $03
FCE0 LD C,A
FCE1 LD B,$00
FCE3 LD IX,$03D1
FCE7 ADD IX,BC
FCE9 LD A,($FB54)
FCEC CALL $03D4
FCEF DI
FCF0 RET
Prev: FC0E Up: Map Next: FCF1