Re-arrange the file layout a bit

This commit is contained in:
Vince Weaver 2012-05-04 16:03:10 -04:00
parent a7669baf08
commit 878872476f
13 changed files with 137 additions and 79 deletions

106
Makefile
View File

@ -3,70 +3,80 @@ CFLAGS = -O2 -Wall
LFLAGS =
all: dos33 asoft_detoken mkdos33fs make_b tokenize_asoft \
dos33_text2ascii integer_detoken char2hex pcx2hgr
dos33_text2ascii integer_detoken char2hex pcx2hgr \
asoft_presenter
asoft_detoken: asoft_detoken.o
$(CC) $(LFLAGS) -o asoft_detoken asoft_detoken.o
asoft_detoken: asoft_detoken.o
$(CC) $(LFLAGS) -o asoft_detoken asoft_detoken.o
asoft_detoken.o: asoft_detoken.c
$(CC) $(CFLAGS) -c asoft_detoken.c
integer_detoken: integer_detoken.o
$(CC) $(LFLAGS) -o integer_detoken integer_detoken.o
asoft_detoken.o: asoft_detoken.c
$(CC) $(CFLAGS) -c asoft_detoken.c
integer_detoken.o: integer_detoken.c
$(CC) $(CFLAGS) -c integer_detoken.c
tokenize_asoft: tokenize_asoft.o
$(CC) $(LFLAGS) -o tokenize_asoft tokenize_asoft.o
tokenize_asoft.o: tokenize_asoft.c
$(CC) $(CFLAGS) -c tokenize_asoft.c
asoft_presenter: asoft_presenter.o
$(CC) $(LFLAGS) -o asoft_presenter asoft_presenter.o
asoft_presenter.o: asoft_presenter.c
$(CC) $(CLFAGS) -c asoft_presenter.c
pcx2hgr: pcx2hgr.o
$(CC) $(LFLAGS) -o pcx2hgr pcx2hgr.o
integer_detoken: integer_detoken.o
$(CC) $(LFLAGS) -o integer_detoken integer_detoken.o
pcx2hgr.o: pcx2hgr.c
$(CC) $(CFLAGS) -c pcx2hgr.c
integer_detoken.o: integer_detoken.c
$(CC) $(CFLAGS) -c integer_detoken.c
char2hex: char2hex.o
$(CC) $(LFLAGS) -o char2hex char2hex.o
tokenize_asoft: tokenize_asoft.o
$(CC) $(LFLAGS) -o tokenize_asoft tokenize_asoft.o
char2hex.o: char2hex.c
$(CC) $(CFLAGS) -c char2hex.c
tokenize_asoft.o: tokenize_asoft.c
$(CC) $(CFLAGS) -c tokenize_asoft.c
dos33: dos33.o
$(CC) $(LFLAGS) -o dos33 dos33.o
dos33.o: dos33.c dos33.h
$(CC) $(CFLAGS) -c dos33.c
pcx2hgr: pcx2hgr.o
$(CC) $(LFLAGS) -o pcx2hgr pcx2hgr.o
dos33_text2ascii: dos33_text2ascii.o
$(CC) $(LFLGAS) -o dos33_text2ascii dos33_text2ascii.o
dos33_text2ascii.o: dos33_text2ascii.c
$(CC) $(CFLAGS) -c dos33_text2ascii.c
pcx2hgr.o: pcx2hgr.c
$(CC) $(CFLAGS) -c pcx2hgr.c
make_b: make_b.o
$(CC) $(LFLAGS) -o make_b make_b.o
make_b.o: make_b.c
$(CC) $(CFLAGS) -c make_b.c
mkdos33fs: mkdos33fs.o
$(CC) $(LFLAGS) -o mkdos33fs mkdos33fs.o
mkdos33fs.o: mkdos33fs.c dos33.h
$(CC) $(CFLAGS) -c mkdos33fs.c
char2hex: char2hex.o
$(CC) $(LFLAGS) -o char2hex char2hex.o
char2hex.o: char2hex.c
$(CC) $(CFLAGS) -c char2hex.c
dos33: dos33.o
$(CC) $(LFLAGS) -o dos33 dos33.o
dos33.o: dos33.c dos33.h
$(CC) $(CFLAGS) -c dos33.c
dos33_text2ascii: dos33_text2ascii.o
$(CC) $(LFLGAS) -o dos33_text2ascii dos33_text2ascii.o
dos33_text2ascii.o: dos33_text2ascii.c
$(CC) $(CFLAGS) -c dos33_text2ascii.c
make_b: make_b.o
$(CC) $(LFLAGS) -o make_b make_b.o
make_b.o: make_b.c
$(CC) $(CFLAGS) -c make_b.c
mkdos33fs: mkdos33fs.o
$(CC) $(LFLAGS) -o mkdos33fs mkdos33fs.o
mkdos33fs.o: mkdos33fs.c dos33.h
$(CC) $(CFLAGS) -c mkdos33fs.c
install:
cp dos33 asoft_detoken mkdos33fs tokenize_asoft make_b dos33_text2ascii integer_detoken /usr/local/bin
cp dos33 asoft_detoken mkdos33fs tokenize_asoft make_b \
dos33_text2ascii integer_detoken /usr/local/bin
clean:
rm -f *~ *.o asoft_detoken dos33 make_b mkdos33fs tokenize_asoft dos33_text2ascii integer_detoken char2hex pcx2hgr
rm -f *~ *.o asoft_detoken dos33 make_b mkdos33fs \
tokenize_asoft dos33_text2ascii integer_detoken \
char2hex pcx2hgr asoft_presenter
cd tests && make clean
cd presenter_demo && make clean

57
README
View File

@ -1,4 +1,6 @@
%%%%%%%%%%%%
dos33fsprogs
%%%%%%%%%%%%
http://www.deater.net/weave/vmwprod/apple/dos33fs.html
@ -8,21 +10,74 @@ dos33fsprogs
These are some tools for manipulating Apple II disk files that
I've written over the years while doing Apple 2 hacking.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
make_b : take a machine language blob and give it the size/offset
header needed to BLOAD it from DOS3.3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
asoft_detoken: takes an applesoft file obtained with dos33
and converts it to an ASCII text file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
tokenize_asoft: takes an ASCII text file and converts it
into a tokenized applesoft file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dos33: a tool for manipulating dos33 .dsk images
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dos33_text2ascii: convert a dos33 text file to ASCII
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
integer_detoken: detokenize an Apple Integer BASIC program
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
pcx2hgr: converts a 140x160 (or 140x192) PCX image file
into an Apple II HGR graphics file that can
be loaded with "BLOAD IMAGE,A$2000"
To get it to work, create an image with the GIMP.
Scale to 140x160. Save as indexed with the
included "hgr.pal" palette.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
mkdos33fs: create an Apple ][ DOS 3.3 filesystems
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
asoft_presenter:
creates a slide presentation disk image for use on apple II
ARGH programming in C too long can't handle things that start
numbering with "1" rather than "0".
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -1,30 +0,0 @@
CC = gcc
CFLAGS = -O2 -Wall
LFLAGS =
all: test.dsk
test.dsk: TEST VINCE.IMG
../dos33 test.dsk SAVE A TEST
../dos33 test.dsk SAVE B VINCE.IMG
VINCE.IMG: vince.pcx ../pcx2hgr
../pcx2hgr vince.pcx > VINCE.IMG
TEST: test.bas
../tokenize_asoft < test.bas > TEST
test.bas: generate_presentation
./generate_presentation test > test.bas
generate_presentation: generate_presentation.o
$(CC) $(LFLAGS) -o generate_presentation generate_presentation.o
generate_presentations.o: generate_presentation.c
$(CC) $(CFLAGS) -c generate_presentation.c
clean:
rm -f *~ *.o generate_presentation

23
presenter_demo/Makefile Normal file
View File

@ -0,0 +1,23 @@
CC = gcc
CFLAGS = -O2 -Wall
LFLAGS =
all: presenter_demo.dsk
presenter_demo.dsk: TEST VINCE.IMG
../dos33 presenter_demo.dsk SAVE A TEST
../dos33 presenter_demo.dsk SAVE B VINCE.IMG
VINCE.IMG: vince.pcx ../pcx2hgr
../pcx2hgr vince.pcx > VINCE.IMG
TEST: test.bas
../tokenize_asoft < test.bas > TEST
test.bas: ../asoft_presenter
../asoft_presenter . > test.bas
clean:
rm -f *~ *.IMG *.bas