From 713ed40c8b67b472edce22549fdf3f569603cf02 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Mon, 3 Jan 2022 16:32:19 -0500 Subject: [PATCH] tiny_gr8: initial checkin --- demos/l/tiny_gr8/Makefile | 46 ++++++++++++++++++++++++++++++++++ demos/l/tiny_gr8/apple2_b8.inc | 12 +++++++++ demos/l/tiny_gr8/file_id.diz | 5 ++++ demos/l/tiny_gr8/hello.bas | 8 ++++++ demos/l/tiny_gr8/tiny_gr.s | 21 ++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 demos/l/tiny_gr8/Makefile create mode 100644 demos/l/tiny_gr8/apple2_b8.inc create mode 100644 demos/l/tiny_gr8/file_id.diz create mode 100644 demos/l/tiny_gr8/hello.bas create mode 100644 demos/l/tiny_gr8/tiny_gr.s diff --git a/demos/l/tiny_gr8/Makefile b/demos/l/tiny_gr8/Makefile new file mode 100644 index 00000000..c5ebab46 --- /dev/null +++ b/demos/l/tiny_gr8/Makefile @@ -0,0 +1,46 @@ +include ../../../Makefile.inc + +DOS33 = ../../../utils/dos33fs-utils/dos33 +TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft +EMPTYDISK = ../../../empty_disk/empty.dsk + +all: tiny_gr8.dsk + +tiny_gr8.dsk: HELLO TINY_GR + cp $(EMPTYDISK) tiny_gr8.dsk + $(DOS33) -y tiny_gr8.dsk SAVE A HELLO + $(DOS33) -y tiny_gr8.dsk BSAVE -a 0xB8 TINY_GR + +### + +submit: text8.zip + +text8.zip: TINY_GR tiny_gr.s file_id.diz tiny_gr8.dsk + mkdir -p lovebyte2021_tiny_gr8 + cp TINY_GR ./lovebyte2021_tiny_gr8 + cp tiny_gr.s ./lovebyte2021_tiny_gr8 + cp file_id.diz ./lovebyte2021_tiny_gr8 + cp tiny_gr8.dsk ./lovebyte2021_tiny_gr8 + cp tiny_gr_720p.mp4 ./lovebyte2021_tiny_gr8 + zip -r text8.zip lovebyte2021_tiny_gr8 + +#### + + +#### + +HELLO: hello.bas + $(TOKENIZE) < hello.bas > HELLO + +### + +TINY_GR: tiny_gr.o + ld65 -o TINY_GR tiny_gr.o -C ./apple2_b8.inc + +tiny_gr.o: tiny_gr.s + ca65 -o tiny_gr.o tiny_gr.s -l tiny_gr.lst + +#### + +clean: + rm -f *~ *.o *.lst HELLO TINY_GR *.zip diff --git a/demos/l/tiny_gr8/apple2_b8.inc b/demos/l/tiny_gr8/apple2_b8.inc new file mode 100644 index 00000000..fc22016b --- /dev/null +++ b/demos/l/tiny_gr8/apple2_b8.inc @@ -0,0 +1,12 @@ +MEMORY { + ZP: start = $00, size = $1A, type = rw; + RAM: start = $b8, size = $8E00, file = %O; +} + +SEGMENTS { +CODE: load = RAM, type = ro; +RODATA: load = RAM, type = ro; +DATA: load = RAM, type = rw; +BSS: load = RAM, type = bss, define = yes; +ZEROPAGE: load = ZP, type = zp; +} diff --git a/demos/l/tiny_gr8/file_id.diz b/demos/l/tiny_gr8/file_id.diz new file mode 100644 index 00000000..f1c9f3f0 --- /dev/null +++ b/demos/l/tiny_gr8/file_id.diz @@ -0,0 +1,5 @@ +Tiny Text +- +Textmode Hex Scroller +8-byte Intro for Apple II, Lovebyte 2021 +by Deater / dSr diff --git a/demos/l/tiny_gr8/hello.bas b/demos/l/tiny_gr8/hello.bas new file mode 100644 index 00000000..78952d62 --- /dev/null +++ b/demos/l/tiny_gr8/hello.bas @@ -0,0 +1,8 @@ +5 HOME +10 PRINT "TINY TEXT -- AN 8 BYTE APPLE II INTRO" +15 PRINT " BY DEATER / DSR" +20 PRINT CHR$(4)"CATALOG" +25 PRINT:PRINT "PRESS ANY KEY TO 'BRUN TINY_TEXT'" +30 GET A$ +35 PRINT +40 PRINT CHR$(4)"BRUN TINY_TEXT" diff --git a/demos/l/tiny_gr8/tiny_gr.s b/demos/l/tiny_gr8/tiny_gr.s new file mode 100644 index 00000000..09170919 --- /dev/null +++ b/demos/l/tiny_gr8/tiny_gr.s @@ -0,0 +1,21 @@ +; Tiny Gr + +; by Vince `deater` Weaver, vince@deater.net --- d e s i r e --- + +; trying to make small graphics in 8 bytes for Apple II + + +; zero page locations + +; ROM calls +SETGR = $FB40 ; set lo-res graphics code, clear screen +PRHEX = $FDE3 ; print hex digit +COUT = $FDED ; output A to screen +COUT1 = $FDF0 ; output A to screen + +tiny_gr: + +tiny_loop: + lda #$20 + bit $C050 + jsr COUT