From c1832c84a1cbad8633ee06506e519b12069eac94 Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Tue, 5 Sep 2023 20:44:36 -0400 Subject: [PATCH] fac: trying something new --- fac/Makefile | 32 ++++++++++++++++++++++++++++++++ fac/README | 7 +++++++ fac/add.s | 5 +++++ fac/hello.bas | 2 ++ 4 files changed, 46 insertions(+) create mode 100644 fac/Makefile create mode 100644 fac/README create mode 100644 fac/add.s create mode 100644 fac/hello.bas diff --git a/fac/Makefile b/fac/Makefile new file mode 100644 index 00000000..4bc43d17 --- /dev/null +++ b/fac/Makefile @@ -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 diff --git a/fac/README b/fac/README new file mode 100644 index 00000000..8fb3dfbb --- /dev/null +++ b/fac/README @@ -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? + diff --git a/fac/add.s b/fac/add.s new file mode 100644 index 00000000..f24d4446 --- /dev/null +++ b/fac/add.s @@ -0,0 +1,5 @@ + +add_debut: + +end: + jmp end diff --git a/fac/hello.bas b/fac/hello.bas new file mode 100644 index 00000000..defcb97b --- /dev/null +++ b/fac/hello.bas @@ -0,0 +1,2 @@ +5 HOME +10 PRINT CHR$(4)"BRUN PLASMAG_TINY"