Prev: 9786 Up: Map Next: 97EA
97C3: Reset sound buffer, volume channels and check for FIRE key
Used by the routines at 947A and D871.
97C3 XOR A Reset temporal buffer at A093
97C4 LD ($A093),A
97C7 CALL $D5D7 Reset channel volumes of the AY-3-8912
97CA LD DE,$C350 Set DE to count 50.000 loops
97CD DEC DE Decrement counter
97CE LD A,D Counter is 0?
97CF OR E
97D0 RET Z Return if so
97D1 LD B,$1E Wait some time
97D3 DJNZ $97D3
97D5 CALL $A477 Check for FIRE key press
97D8 JP NZ,$97CD Jump back if not pressed
97DB CALL $A477 Check for FIRE key press
97DE JP Z,$97DB Jump back until FIRE key not pressed
97E1 CALL $D5AE Reset sound data buffer
97E4 LD A,$01 Set $01 to temporal buffer at A093 meaning fire pressed
97E6 LD ($A093),A
97E9 RET
Prev: 9786 Up: Map Next: 97EA