mirror of
https://github.com/pkali/Avery_Breakout.git
synced 2026-05-20 22:33:55 +02:00
Audio init after IO and ATR
This commit is contained in:
+20
-11
@@ -363,6 +363,8 @@ gameloop
|
|||||||
jsr MakeDarkScreen
|
jsr MakeDarkScreen
|
||||||
jsr NextLevel
|
jsr NextLevel
|
||||||
jsr LevelScreen
|
jsr LevelScreen
|
||||||
|
; RMTSong song_ingame
|
||||||
|
jsr AudioInit ; after I/O
|
||||||
jmp gameloop
|
jmp gameloop
|
||||||
EndOfLife
|
EndOfLife
|
||||||
dec Lives ; decrease Lives
|
dec Lives ; decrease Lives
|
||||||
@@ -1262,6 +1264,23 @@ colorCycleTabReset
|
|||||||
.by 14,2,4,6,8,10,12
|
.by 14,2,4,6,8,10,12
|
||||||
brickcolorTab
|
brickcolorTab
|
||||||
.by 0
|
.by 0
|
||||||
|
|
||||||
|
;--------------------------------------------------
|
||||||
|
.proc AudioInit
|
||||||
|
;--------------------------------------------------
|
||||||
|
; pokeys init
|
||||||
|
lda #3
|
||||||
|
sta skctl ; put Pokey into Init
|
||||||
|
sta skctl+$10
|
||||||
|
ldx #8
|
||||||
|
lda #0
|
||||||
|
@
|
||||||
|
sta $D200,x ; clear all voices, set AUDCTL to 00
|
||||||
|
sta $D210,x ; clear all voices, set AUDCTL to 00
|
||||||
|
dex
|
||||||
|
bpl @-
|
||||||
|
rts
|
||||||
|
.endp
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
.proc initialize
|
.proc initialize
|
||||||
;--------------------------------------------------
|
;--------------------------------------------------
|
||||||
@@ -1277,17 +1296,7 @@ brickcolorTab
|
|||||||
lda #$ff
|
lda #$ff
|
||||||
sta sfx_effect
|
sta sfx_effect
|
||||||
|
|
||||||
; pokeys init
|
JSR AudioInit
|
||||||
lda #3
|
|
||||||
sta skctl ; put Pokey into Init
|
|
||||||
sta skctl+$10
|
|
||||||
ldx #8
|
|
||||||
lda #0
|
|
||||||
@
|
|
||||||
sta $D200,x ; clear all voices, set AUDCTL to 00
|
|
||||||
sta $D210,x ; clear all voices, set AUDCTL to 00
|
|
||||||
dex
|
|
||||||
bpl @-
|
|
||||||
|
|
||||||
;RMT INIT
|
;RMT INIT
|
||||||
ldx #<MODUL ;low byte of RMT module to X reg
|
ldx #<MODUL ;low byte of RMT module to X reg
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user