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

github.com/coolgirl-multicart/coolgirl-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>2020-09-25 09:38:22 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-09-25 09:38:22 +0300
commitba93527ee6fed07ca966a4508c520c87454425ee (patch)
tree3720c9867c1a0b1aff9fd802ea8f3c27415337de /preloader.asm
parent176a422a61e5b0f2b648f656ea87de0db55734bf (diff)
Incompatible console message fixes
Diffstat (limited to 'preloader.asm')
-rw-r--r--preloader.asm13
1 files changed, 12 insertions, 1 deletions
diff --git a/preloader.asm b/preloader.asm
index 06c9ff5..e758bd9 100644
--- a/preloader.asm
+++ b/preloader.asm
@@ -31,10 +31,14 @@ start_game:
beq compatible_console
; not compatible console!
+ ; error sound
+ jsr error_sound
; save state, without game save
lda #0
sta <LAST_STARTED_SAVE
jsr save_state
+ ; print error message
+ jsr clear_screen
jsr load_text_palette
lda #$21
sta $2006
@@ -53,11 +57,18 @@ start_game:
sta $2000
lda #%00001010
sta $2001
- jsr waitblank_simple
+ ; wait until all buttons released
.incompatible_print_wait_no_button:
jsr read_controller
lda <BUTTONS
bne .incompatible_print_wait_no_button
+ ; tiny delay
+ ldx #15
+.incompatible_wait:
+ jsr waitblank_simple
+ dex
+ bne .incompatible_wait
+ ; wait until any button pressed
.incompatible_print_wait_button:
jsr read_controller
lda <BUTTONS