Prev: $B940 Up: Map Next: $BA00
$B9A0: Initialise voices #1, #2 and #3 for the 'Got all shields' tune
Used by the routine at $BA48.
$B9A0 LDA #$46 Set voice #1 attack length to 38ms and decay length to 204ms.
$B9A2 STA $D405
$B9A5 LDA #$2C Set voice #2 attack length to 16ms and decay length to 3s.
$B9A7 STA $D40C
$B9AA LDA #$2C Set voice #3 attack length to 16ms and decay length to 3s.
$B9AC STA $D413
$B9AF LDA #$00 Set voice #1 sustain volume to 0 and release length to 6ms.
$B9B1 STA $D406
$B9B4 LDA #$00 Set voice #2 sustain volume to 0 and release length to 6ms.
$B9B6 STA $D40D
$B9B9 LDA #$00 Set voice #3 sustain volume to 0 and release length to 6ms.
$B9BB STA $D414
$B9BE LDA #$20 Initialise the voice control registers in the in the tune buffer at $BBB4: voice off; saw waveform enabled.
$B9C0 STA $BBCB
$B9C3 LDA #$10
$B9C5 STA $BBCC
$B9C8 LDA #$10
$B9CA STA $BBCD
$B9CD LDA #$80 Set voice #1 pulse width to $8080.
$B9CF STA $D402
$B9D2 LDA #$80
$B9D4 STA $D403
$B9D7 LDA #$00 Set voice #2 pulse width to 0.
$B9D9 STA $D409
$B9DC LDA #$00
$B9DE STA $D40A
$B9E1 LDA #$00 Set voice #3 pulse width to 0.
$B9E3 STA $D410
$B9E6 LDA #$00
$B9E8 STA $D411
$B9EB LDA #$00 Set filter cut off frequency to 0.
$B9ED STA $D416
$B9F0 LDA #$00
$B9F2 STA $D415
$B9F5 LDA #$00 Disable voice filters.
$B9F7 STA $D417
$B9FA LDA #$0F Set volume to maximum and disable filters.
$B9FC STA $D418
$B9FF RTS
Prev: $B940 Up: Map Next: $BA00