FB81: Play Theme Tune
PlayThemeTune |
FB81 |
LD HL,$FB55 |
|
FB84 |
CALL $FB5E |
|
FB87 |
LD ($FB52),A |
|
FB8A |
LD HL,$FB59 |
|
FB8D |
CALL $FB5E |
|
FB90 |
LD ($FB53),A |
|
FB93 |
LD HL,$FB52 |
|
FB96 |
CALL $FB6B |
|
FB99 |
RL E |
|
FB9B |
JP C,$FC44 |
|
FB9E |
PUSH HL |
|
FB9F |
LD HL,$FB53 |
|
FBA2 |
CALL $FB6B |
|
FBA5 |
POP DE |
|
FBA6 |
LD A,H |
|
FBA7 |
DEC A |
|
FBA8 |
JR NZ,PlayThemeTune_0 |
|
FBAA |
LD A,D |
|
FBAB |
DEC A |
|
FBAC |
JR Z,PlayThemeTune_6 |
PlayThemeTune_0 |
FBAE |
LD A,($FB5D) |
|
FBB1 |
LD C,A |
|
FBB2 |
LD B,$00 |
|
FBB4 |
LD A,($FB54) |
|
FBB7 |
EX AF,AF' |
|
FBB8 |
LD A,($FB54) |
|
FBBB |
LD IXh,D |
|
FBBD |
LD D,$10 |
PlayThemeTune_1 |
FBBF |
NOP |
|
FBC0 |
NOP |
PlayThemeTune_2 |
FBC1 |
EX AF,AF' |
|
FBC2 |
DEC E |
|
FBC3 |
OUT ($FE),A |
|
FBC5 |
JR NZ,PlayThemeTune_4 |
|
FBC7 |
LD E,IXh |
|
FBC9 |
XOR D |
|
FBCA |
EX AF,AF' |
|
FBCB |
DEC L |
|
FBCC |
JP NZ,PlayThemeTune_5 |
PlayThemeTune_3 |
FBCF |
OUT ($FE),A |
|
FBD1 |
LD L,H |
|
FBD2 |
XOR D |
|
FBD3 |
DJNZ PlayThemeTune_1 |
|
FBD5 |
INC C |
|
FBD6 |
JP NZ,PlayThemeTune_2 |
|
FBD9 |
RET |
|
FBDA |
LD H,C |
|
FBDB |
LD H,H |
|
FBDC |
LD H,C |
|
FBDD |
LD L,L |
PlayThemeTune_4 |
FBDE |
JR Z,PlayThemeTune_4 |
|
FBE0 |
EX AF,AF' |
|
FBE1 |
DEC L |
|
FBE2 |
JP Z,PlayThemeTune_3 |
PlayThemeTune_5 |
FBE5 |
OUT ($FE),A |
|
FBE7 |
NOP |
|
FBE8 |
NOP |
|
FBE9 |
DJNZ PlayThemeTune_1 |
|
FBEB |
INC C |
|
FBEC |
JP NZ,PlayThemeTune_2 |
|
FBEF |
RET |
PlayThemeTune_6 |
FBF0 |
LD A,($FB5D) |
|
FBF3 |
CPL |
|
FBF4 |
LD C,A |
PlayThemeTune_7 |
FBF5 |
PUSH BC |
|
FBF6 |
PUSH AF |
|
FBF7 |
LD B,$00 |
PlayThemeTune_8 |
FBF9 |
PUSH HL |
|
FBFA |
LD HL,$0000 |
|
FBFD |
SRA (HL) |
|
FBFF |
SRA (HL) |
|
FC01 |
SRA (HL) |
|
FC03 |
NOP |
|
FC04 |
POP HL |
|
FC05 |
DJNZ PlayThemeTune_8 |
|
FC07 |
DEC C |
|
FC08 |
JP NZ,PlayThemeTune_8 |
|
FC0B |
POP AF |
|
FC0C |
POP BC |
|
FC0D |
RET |