Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/coolboy-multirom-builder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-08-16 03:31:47 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-08-16 03:31:47 +0300
commit7b3c512635c4e3f70db9801be8c57d072238c5f0 (patch)
tree418951ca906bf91e269361e3cd44114b3c2fac63 /buttons.asm
parent43d6f3a6d268e9aa0f6a093a1c246bc7398ba12b (diff)
Contant to enable/disable sounds
Diffstat (limited to 'buttons.asm')
-rw-r--r--buttons.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/buttons.asm b/buttons.asm
index 6c2db59..1e1b5ee 100644
--- a/buttons.asm
+++ b/buttons.asm
@@ -87,14 +87,15 @@ buttons_check:
lda <BUTTONS
and #%00001000
beq .button_up
- jsr start_sound
jmp start_game
.button_up:
lda <BUTTONS
and #%00010000
beq .button_down
+ .if ENABLE_SOUND!=0
jsr bleep
+ .endif
lda <SELECTED_GAME
sec
sbc #1
@@ -121,7 +122,9 @@ buttons_check:
lda <BUTTONS
and #%00100000
beq .button_left
+ .if ENABLE_SOUND!=0
jsr bleep
+ .endif
lda <SELECTED_GAME
clc
adc #1
@@ -160,7 +163,9 @@ buttons_check:
bne .button_left_bleep
jmp .button_right
.button_left_bleep:
+ .if ENABLE_SOUND!=0
jsr bleep
+ .endif
lda <SCROLL_LINES_TARGET
sec
sbc #10
@@ -213,7 +218,9 @@ buttons_check:
bne .button_right_bleep
jmp .button_end
.button_right_bleep:
+ .if ENABLE_SOUND!=0
jsr bleep
+ .endif
lda <SCROLL_LINES_TARGET
clc
adc #10