o2024: update the build

This commit is contained in:
Vince Weaver 2024-05-07 00:50:26 -04:00
parent f9c64692d3
commit 88a2e1b23e
5 changed files with 29 additions and 16 deletions

View File

@ -1,16 +1,17 @@
include ../../Makefile.inc
include ../../../Makefile.inc
DOS33 = ../../utils/dos33fs-utils/dos33
TOKENIZE = ../../utils/asoft_basic-utils/tokenize_asoft
EMPTYDISK = ../../empty_disk/empty.dsk
LINKERSCRIPTS = ../../linker_scripts/
DOS33 = ../../../utils/dos33fs-utils/dos33
TOKENIZE = ../../../utils/asoft_basic-utils/tokenize_asoft
EMPTYDISK = ../../../empty_disk/empty.dsk
LINKERSCRIPTS = ../../../linker_scripts/
all: cosmic_fish.dsk
cosmic_fish.dsk: HELLO COSMIC_FISH
cosmic_fish.dsk: HELLO COSMIC_FISH COSMIC_FISH_QUIET
cp $(EMPTYDISK) cosmic_fish.dsk
$(DOS33) -y cosmic_fish.dsk SAVE A HELLO
$(DOS33) -y cosmic_fish.dsk BSAVE -a 0x2000 COSMIC_FISH
$(DOS33) -y cosmic_fish.dsk BSAVE -a 0x2000 COSMIC_FISH_QUIET
###
@ -50,7 +51,16 @@ COSMIC_FISH: cosmic_fish.o
cosmic_fish.o: cosmic_fish.s
ca65 -o cosmic_fish.o cosmic_fish.s -l cosmic_fish.lst
###
COSMIC_FISH_QUIET: cosmic_fish_quiet.o
ld65 -o COSMIC_FISH_QUIET cosmic_fish_quiet.o -C $(LINKERSCRIPTS)/apple2_2000.inc
cosmic_fish_quiet.o: cosmic_fish.s
ca65 -o cosmic_fish_quiet.o cosmic_fish.s -DQUIET=1 -l cosmic_fish_quiet.lst
####
clean:
rm -f *~ *.o *.lst HELLO COSMIC_FISH *.zip
rm -f *~ *.o *.lst HELLO COSMIC_FISH COSMIC_FISH_QUIET *.zip

View File

@ -311,8 +311,9 @@ vsmc:
cmp #48
bcs no_plot
.ifndef QUIET
bit SPEAKER ; click speaker
.endif
jsr PLOT ; PLOT AT Y,A

View File

@ -0,0 +1,10 @@
5 HOME
10 PRINT " COSMIC_FISH -- 256B FOR OUTLINE 2024"
15 PRINT " BY DEATER / DSR"
20 PRINT CHR$(4)"CATALOG"
22 PRINT:PRINT "PRESS Q TO RUN VERSION W/O SOUND"
25 PRINT:PRINT "ANY OTHER KEY TO 'BRUN COSMIC_FISH'"
30 GET A$
32 IF A$="Q" OR A$="q" THEN PRINT:PRINT CHR$(4)"BRUN COSMIC_FISH_QUIET"
35 PRINT
40 PRINT CHR$(4)"BRUN COSMIC_FISH"

View File

@ -1,8 +0,0 @@
5 HOME
10 PRINT " COSMIC_FISH -- 256 BYTES FOR OUTLINE 2024"
15 PRINT " BY DEATER / DSR"
20 PRINT CHR$(4)"CATALOG"
25 PRINT:PRINT "PRESS ANY KEY TO 'BRUN COSMIC_FISH'"
30 GET A$
35 PRINT
40 PRINT CHR$(4)"BRUN COSMIC_FISH"