Prev: CBF7 Up: Map Next: CC84
CC62: Initialise AY Sound
Used by the routines at 9D42, AADC and CB12.
Initialise_AYSound CC62 XOR A A=00.
CC63 LD ($D009),A Write A to *D009.
This entry point is used by the routine at CC84.
Initialise_AYSound_0 CC66 LD C,$FD Set the port number for the AY sound in C (FD).
CC68 LD DE,$0D00 DE=0D00.
CC6B SUB A A-=A.
Initialise_AYSound_1 CC6C LD B,$FF Select the register port.
CC6E OUT (C),D Select register.
CC70 LD B,$BF Set the data port in B (BF).
CC72 OUT (C),A Write zero to the register.
CC74 DEC D Decrease D by one.
CC75 JP P,Initialise_AYSound_1 Jump back to Initialise_AYSound_1 if D is greater than or equal to 00.
Set mixer control.
CC78 LD DE,$073F DE=073F.
CC7B LD B,$FF B=FF.
CC7D OUT (C),D Select mixer register.
CC7F LD B,$BF Set the data port in B (BF).
CC81 OUT (C),E Set mixer state.
CC83 RET Return.
Prev: CBF7 Up: Map Next: CC84