From 670f252ef94da42d9a6575c1ae3b428b6583189b Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 15 May 2023 15:36:45 -0400 Subject: [PATCH] double: add in static effect --- vaporlock/doubledouble/double.s | 51 ++++++++++----- vaporlock/doubledouble/effect_static.s | 87 ++++++++------------------ 2 files changed, 61 insertions(+), 77 deletions(-) diff --git a/vaporlock/doubledouble/double.s b/vaporlock/doubledouble/double.s index 22537aa9..1c8486f9 100644 --- a/vaporlock/doubledouble/double.s +++ b/vaporlock/doubledouble/double.s @@ -263,7 +263,9 @@ no_music_for_you: vblank_smc: jsr $ffff - jsr effect_dhgr_dgr + jsr effect_static + +; jsr effect_dhgr_dgr jmp double_loop ; 3 @@ -275,38 +277,55 @@ vblank_smc: .include "vblank.s" -.include "effect_dhgr_dgr.s" + ; actually want 1524-12 = 1512 (6 each for jsr/rts) - ; actually want 1552-12 (6 each for jsr/rts) - ; 1540 - ; Try X=15 Y=19 cycles=1540 ; 1532 ; Try X=1 Y=139 cycles=1530 + ; 1524 + ; Try X=5 Y=49 cycles=1520 + ; 1512 + ; Try X=22 Y=13 cycles=1509 +delay_1560: + nop + nop + nop + nop delay_1552: + nop + nop +delay_1548: + nop + nop +delay_1544: nop - - ldy #139 ; 2 loop5: ldx #1 ; 2 loop6: dex ; 2 bne loop6 ; 2nt/3 dey ; 2 bne loop5 ; 2nt/3 - - rts - - -wait_until_keypress: - lda KEYBOARD - bpl wait_until_keypress - bit KEYRESET delay_12: rts +.include "effect_dhgr_dgr.s" + +.include "effect_static.s" + + + + +;wait_until_keypress: +; lda KEYBOARD +; bpl wait_until_keypress +; bit KEYRESET +;delay_12: +; rts + + .include "pt3_lib_detect_model.s" .include "pt3_lib_core.s" .include "pt3_lib_init.s" @@ -351,7 +370,6 @@ config_string: .byte 0,23,"APPLE II? MOCKINGBOARD: NO ",0 - .include "text_print.s" .include "title.s" .include "gr_fast_clear.s" @@ -387,4 +405,3 @@ middle_table3: middle_table4: .byte