From 7862e051a1543121148c77017824dd453837f83a Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sat, 6 Oct 2018 20:46:06 -0400 Subject: [PATCH] space_bars: more splitting the timing --- space_bars/game.s | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/space_bars/game.s b/space_bars/game.s index 85ec1873..1430f348 100644 --- a/space_bars/game.s +++ b/space_bars/game.s @@ -186,28 +186,45 @@ sb_text_loop: sb_hgr_loop: - ; delay 184*65 = 11960 + ; delay 40*65 = 2600 ; -2 ; +1 ; -8 ;========================= - ; 11951 + ; 2591 bit SET_GR ; 4 bit HIRES ; 4 - ; Try X=22 Y=103 cycles=11949 R2 + ; Try X=1 Y=235 cycles=2586 R5 - nop + nop ; 2 + lda $0 ; 3 - ldy #103 ; 2 -sbloopC:ldx #22 ; 2 + ldy #235 ; 2 +sbloopC:ldx #1 ; 2 sbloopD:dex ; 2 bne sbloopD ; 2nt/3 dey ; 2 bne sbloopC ; 2nt/3 + + +sb_mixed_loop: + ; delay 144*65 = 9360 + + ; Try X=37 Y=49 cycles=9360 + + ldy #49 ; 2 +sbloopE:ldx #37 ; 2 +sbloopF:dex ; 2 + bne sbloopF ; 2nt/3 + dey ; 2 + bne sbloopE ; 2nt/3 + + + ;====================================================== ; We have 4550 cycles in the vblank, use them wisely ;======================================================