fac: trying something new

This commit is contained in:
Vince Weaver 2023-09-05 20:44:36 -04:00
parent ee04e5f042
commit c1832c84a1
4 changed files with 46 additions and 0 deletions

32
fac/Makefile Normal file
View File

@ -0,0 +1,32 @@
include ../Makefile.inc
DOS33 = ../utils/dos33fs-utils/dos33
TOKENIZE = ../utils/asoft_basic-utils/tokenize_asoft
LINKERSCRIPTS = ../linker_scripts
EMPTYDISK = ../empty_disk/empty.dsk
all: fac.dsk
fac.dsk: HELLO ADD
cp $(EMPTYDISK) fac.dsk
$(DOS33) -y fac.dsk SAVE A HELLO
$(DOS33) -y fac.dsk BSAVE -a 0xC00 ADD
###
HELLO: hello.bas
$(TOKENIZE) < hello.bas > HELLO
###
ADD: add.o
ld65 -o ADD add.o -C $(LINKERSCRIPTS)/apple2_c00.inc
add.o: add.s
ca65 -o add.o add.s -l add.lst
###
clean:
rm -f *~ *.o *.lst ADD HELLO

7
fac/README Normal file
View File

@ -0,0 +1,7 @@
Code attempting to use the floating point routines from the
Applesoft ROMs
In theory could help create lookuptables in not much code
Best reference for this seems to be Wagner's Assembly Lines book?

5
fac/add.s Normal file
View File

@ -0,0 +1,5 @@
add_debut:
end:
jmp end

2
fac/hello.bas Normal file
View File

@ -0,0 +1,2 @@
5 HOME
10 PRINT CHR$(4)"BRUN PLASMAG_TINY"