summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrid Smith2010-07-24 16:48:51 -0700
committerAstrid Smith2010-07-24 16:48:51 -0700
commit48aaaa74f7052e870d43e840a069eeda7729f404 (patch)
treefa6d3fc6c73133d80f3eefe0a36c884b2676d2f1
parentf62a714b9087f124f65450c86b50435266e96e62 (diff)
Created ROM packager utility stub
-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;
+}