summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--packager.c20
2 files changed, 26 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1b23ee5..97bb009 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
ASM_FILES=alu.asm flags.asm opcodes.asm ports.asm interrupts.asm main.asm
C_FILES=loader.c bankswap.c video.c
-CFLAGS=-Wall
+TIGCCFLAGS=-Wall
+CFLAGS=-Wall -ltifiles
z680.89k: $(ASM_FILES) $(C_FILES)
- tigcc $(CFLAGS) $(ASM_FILES) $(C_FILES) -o z680.89z
+ tigcc $(TIGCCFLAGS) $(ASM_FILES) $(C_FILES) -o z680.89z
+
+packager: packager.c
+ gcc $(CFLAGS) packager.c -o packager
diff --git a/packager.c b/packager.c
new file mode 100644
index 0000000..0344cb0
--- /dev/null
+++ b/packager.c
@@ -0,0 +1,20 @@
+/* Copyright 2010, Astrid Smith
+ * GPL
+ *
+ * A Linux tool to turn a rom dump into an 89g file of rom segments.
+ */
+
+#include <tilp/tifiles.h>
+#include <tilp/macros.h>
+
+
+int main(int argc, char **argv)
+{
+ Ti9xFlash content;
+
+ tifiles_init();
+
+
+
+ return 0;
+}