AFD1: Limpa o ecra (genero de fade)
fadeOut |
AFD1 |
LD A,$08 |
fadeOut_0 |
AFD3 |
LD HL,$4000 |
|
AFD6 |
LD C,$18 |
fadeOut_1 |
AFD8 |
LD B,$00 |
fadeOut_2 |
AFDA |
SRL (HL) |
|
AFDC |
INC HL |
|
AFDD |
DJNZ fadeOut_2 |
|
AFDF |
DEC C |
|
AFE0 |
JR NZ,fadeOut_1 |
|
AFE2 |
LD B,$00 |
fadeOut_3 |
AFE4 |
DEC B |
|
AFE5 |
JR NZ,fadeOut_3 |
|
AFE7 |
LD C,$00 |
fadeOut_4 |
AFE9 |
DEC C |
|
AFEA |
JR NZ,fadeOut_4 |
|
AFEC |
DEC A |
|
AFED |
JR NZ,fadeOut_0 |
|
AFEF |
LD HL,$5800 |
|
AFF2 |
LD A,($C34F) |
|
AFF5 |
LD C,$18 |
fadeOut_5 |
AFF7 |
LD B,$20 |
fadeOut_6 |
AFF9 |
LD (HL),A |
|
AFFA |
INC HL |
|
AFFB |
DJNZ fadeOut_6 |
|
AFFD |
DEC C |
|
AFFE |
JR NZ,fadeOut_5 |
|
B000 |
RET |