diff --git a/split_screen/Makefile b/split_screen/Makefile index 2bafc92b..1618009f 100644 --- a/split_screen/Makefile +++ b/split_screen/Makefile @@ -32,7 +32,7 @@ RAINBOW: rainbow.o RAINBOW.BAS: rainbow.bas $(TOKENIZE) < rainbow.bas > RAINBOW.BAS -credits.o: credits.s +credits.o: credits.s tfv_sprites.inc ca65 -o credits.o credits.s -l credits.lst CREDITS: credits.o diff --git a/split_screen/calc_freq.c b/split_screen/calc_freq.c index dda81dbe..9496f00d 100644 --- a/split_screen/calc_freq.c +++ b/split_screen/calc_freq.c @@ -8,7 +8,8 @@ int main(int argc, char **argv) { // desired=4152; // desired=5196; // desired=4547; - desired=9685; +// desired=9685; + desired=2481; printf("You want %d cycles\n",desired); diff --git a/split_screen/credits.s b/split_screen/credits.s index c41e2652..65c68973 100644 --- a/split_screen/credits.s +++ b/split_screen/credits.s @@ -130,6 +130,10 @@ line_loop: ; The blanking happens at the *beginning* ; So 65 bytes are scanned, starting at adress of the line - 25 + ; the scan takes 8 cycles, look for 4 repeats of the value + ; to avoid false positive found if the horiz blanking is mirroring + ; the line (max 3 repeats in that case) + vapor_lock_loop: LDA #$44 zloop: @@ -268,11 +272,36 @@ loop6: ; Try X=13 Y=64 cycles=4545 R2 + + ; DRAW SPRITES + ; do this during blanking interval + + lda #>bird_stand_right ; 2 + sta INH ; 3 + lda #