AFEB: FX : White Noise
FX_WhiteNoise |
AFEB |
PUSH AF |
|
AFEC |
PUSH BC |
|
AFED |
PUSH HL |
|
AFEE |
LD HL,(FX_WhiteNoisePtr) |
|
AFF1 |
LD B,$19 |
FX_WhiteNoise_0 |
AFF3 |
PUSH BC |
|
AFF4 |
LD B,(HL) |
|
AFF5 |
INC HL |
|
AFF6 |
LD A,$10 |
|
AFF8 |
OUT ($FE),A |
|
AFFA |
PUSH BC |
FX_WhiteNoise_1 |
AFFB |
DJNZ FX_WhiteNoise_1 |
|
AFFD |
POP BC |
|
AFFE |
LD B,(HL) |
|
AFFF |
INC HL |
|
B000 |
LD A,$00 |
|
B002 |
OUT ($FE),A |
FX_WhiteNoise_2 |
B004 |
DJNZ FX_WhiteNoise_2 |
|
B006 |
POP BC |
|
B007 |
DJNZ FX_WhiteNoise_0 |
|
B009 |
LD A,H |
|
B00A |
CP $9C |
|
B00C |
JR NZ,FX_WhiteNoise_3 |
|
B00E |
LD H,$80 |
FX_WhiteNoise_3 |
B010 |
LD (FX_WhiteNoisePtr),HL |
|
B013 |
POP HL |
|
B014 |
POP BC |
|
B015 |
POP AF |
|
B016 |
RET |