diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2021-06-05 14:20:40 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2021-06-05 14:20:40 +0300 |
commit | 083b5c360ed65d9d2a46725f0636b8b968eb0085 (patch) | |
tree | 864655d00a440821e9fa61462f102fc025f8fb3b | |
parent | ee616af62e78455cf07732b5cb7529561bad6fd8 (diff) |
Waiting for buttons release on startup
-rw-r--r-- | buttons.asm | 9 | ||||
-rw-r--r-- | menu.asm | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/buttons.asm b/buttons.asm index 62ca9da..6c2db59 100644 --- a/buttons.asm +++ b/buttons.asm @@ -346,6 +346,15 @@ wait_buttons_not_pressed: bne wait_buttons_not_pressed rts + ; waiting for button release, really +wait_buttons_really_not_pressed: + jsr waitblank ; waiting for v-blank + lda <BUTTONS + bne wait_buttons_really_not_pressed + lda BUTTONS_HOLD_TIME + bne wait_buttons_really_not_pressed + rts + konami_code_check: ldy <KONAMI_CODE_STATE lda konami_code, y @@ -311,7 +311,7 @@ Start: jsr dim_base_palette_in ; do not hold buttons! - ;jsr wait_buttons_not_pressed + jsr wait_buttons_really_not_pressed ; main loop infin: |