From 8bfee980177510447ca086c42819acfe5a171e37 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 5 Jul 2018 22:15:42 -0400 Subject: [PATCH] split: got bird sprite working --- split_screen/calc_freq.c | 2 +- split_screen/credits.s | 71 ++++++++++++++++++++---------------- split_screen/tfv_sprites.inc | 44 ++++++++++++---------- 3 files changed, 64 insertions(+), 53 deletions(-) diff --git a/split_screen/calc_freq.c b/split_screen/calc_freq.c index 8b1a80b0..e053a884 100644 --- a/split_screen/calc_freq.c +++ b/split_screen/calc_freq.c @@ -9,7 +9,7 @@ int main(int argc, char **argv) { // desired=5196; // desired=4547; // desired=9685; - desired=3714; + desired=2331; printf("You want %d cycles\n",desired); diff --git a/split_screen/credits.s b/split_screen/credits.s index 9a8417fa..09f00e4f 100644 --- a/split_screen/credits.s +++ b/split_screen/credits.s @@ -135,6 +135,15 @@ line_loop: ; the line (max 3 repeats in that case) vapor_lock_loop: + LDA #$A0 +zxloop: + LDX #$04 +wiloop: + CMP $C051 + BNE zxloop + DEX + BNE wiloop + LDA #$44 zloop: LDX #$04 @@ -268,17 +277,29 @@ loop6: ; vertical blank ; want 4550-3 = 4547 cycles - ; 1+y(6+5x) - ; Try X=13 Y=64 cycles=4545 R2 +; lda #0 ; 2 +; ldy #64 ; 2 +loopE: +; ldx #13 ; 2 +loopF: +; dex ; 2 +; bne loopF ; 2nt/3 +; dey ; 2 +; bne loopE ; 2nt/3 + + + + +;========================================================================= ; DRAW SPRITES ; do this during blanking interval - lda #>blob ; 2 + lda #>bird_rider_stand_right ; 2 sta INH ; 3 - lda #