tiny_gr8: initial checkin

This commit is contained in:
Vince Weaver 2022-01-03 16:32:19 -05:00
parent 9fc7069829
commit 713ed40c8b
5 changed files with 92 additions and 0 deletions

46
demos/l/tiny_gr8/Makefile Normal file
View File

@ -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

View File

@ -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;
}

View File

@ -0,0 +1,5 @@
Tiny Text
-
Textmode Hex Scroller
8-byte Intro for Apple II, Lovebyte 2021
by Deater / dSr

View File

@ -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"

View File

@ -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