From c75dffc7edd9e8affa65b12649c1b9f9d99f9aea Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Sat, 6 Nov 2021 00:09:39 -0400 Subject: [PATCH] demos: d2 --- demos/d2/Makefile | 3 +- demos/d2/d2.s | 91 ++++++++++++++++++----- demos/d2/moving.s | 52 ++----------- demos/d2/oval.s | 182 ++++++++++++++++++++++++++++++++++++++++++++++ demos/d2/wires.s | 94 ++++++++++++++++++++++++ demos/d2/zp.inc | 1 + 6 files changed, 356 insertions(+), 67 deletions(-) create mode 100644 demos/d2/oval.s create mode 100644 demos/d2/wires.s diff --git a/demos/d2/Makefile b/demos/d2/Makefile index 4d3edae0..c40b3111 100644 --- a/demos/d2/Makefile +++ b/demos/d2/Makefile @@ -29,6 +29,7 @@ D2: d2.o ld65 -o D2 d2.o -C $(LINKER_SCRIPTS)/apple2_6000.inc d2.o: d2.s \ + moving.s wires.s \ zp.inc hardware.inc \ peasant_music.s \ interrupt_handler.s mockingboard_setup.s @@ -45,5 +46,5 @@ text_to_tiny.o: text_to_tiny.c #### clean: - rm -f *~ *.o *.lst YANKEE PEASANT HELLO text_to_tiny peasant_music.s + rm -f *~ *.o *.lst D2 HELLO text_to_tiny peasant_music.s diff --git a/demos/d2/d2.s b/demos/d2/d2.s index 72fdb7e1..3d22f4eb 100644 --- a/demos/d2/d2.s +++ b/demos/d2/d2.s @@ -1,14 +1,4 @@ -; Tiny Mockingboard Player - -; 514B -- Initial implementation -; 423B -- inline everything -; 400B -- put register init at end of song -; 381B -- generate the frequency table - -; proposed format -; CCOONNNN -- c=channel, o=octave, n=note -; 11LLLLLL -- L=length -; 11LLLLLL -- wait time +; Demo2 ; by deater (Vince Weaver) @@ -17,15 +7,10 @@ .include "hardware.inc" - ;========================================== - -tiny_music: +d2: ;=================== - ; - - ;=================== - ; Player Setup + ; music Player Setup lda #