diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9955f60 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_Store +/build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5bcc947 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +# +# 4LIVE Makefile +# assembles source code, optionally builds a disk image and mounts it +# +# original by Quinn Dunki on 2014-08-15 +# One Girl, One Laptop Productions +# http://www.quinndunki.com/blondihacks +# +# adapted by 4am on 2016-10-16 +# + +# program name +PGM=4live +A2PGM=_4LIVE + +# project subdirectories +BIN=bin +BUILD=build +RES=res +SRC=src + +# project files +BLANKDISK=$(RES)/work.dsk +BUILDDISK=$(BUILD)/$(PGM).dsk + +# third-party tools required to build +# https://sourceforge.net/projects/acme-crossass/ +ACME=/usr/local/bin/acme +# https://sourceforge.net/projects/applecommander/ +AC=$(BIN)/AppleCommander.jar + + +all: $(PGM) + +clean: + rm -rf $(BUILD) + +$(PGM): + mkdir -p $(BUILD) + $(ACME) -o $(BUILD)/$(PGM) $(SRC)/$(PGM).a + cp $(BLANKDISK) $(BUILDDISK) + java -jar $(AC) -p $(BUILDDISK) $(A2PGM) B 0x8000 < $(BUILD)/$(PGM) + osascript $(BIN)/V2Make.scpt "`pwd`" $(BUILDDISK) diff --git a/bin/AppleCommander.jar b/bin/AppleCommander.jar new file mode 100644 index 0000000..f74e7cb Binary files /dev/null and b/bin/AppleCommander.jar differ diff --git a/bin/V2Make.scpt b/bin/V2Make.scpt new file mode 100644 index 0000000..8177885 Binary files /dev/null and b/bin/V2Make.scpt differ diff --git a/res/work.dsk b/res/work.dsk new file mode 100755 index 0000000..4cd13ac Binary files /dev/null and b/res/work.dsk differ diff --git a/src/4live.a b/src/4live.a new file mode 100644 index 0000000..e315a71 --- /dev/null +++ b/src/4live.a @@ -0,0 +1,8 @@ +; +; 4LIVE +; a 4am & san inc hack +; +!cpu 6502 +*=$8000 +; + rts