From 48aaaa74f7052e870d43e840a069eeda7729f404 Mon Sep 17 00:00:00 2001 From: Astrid Smith Date: Sat, 24 Jul 2010 16:48:51 -0700 Subject: Created ROM packager utility stub --- Makefile | 8 ++++++-- packager.c | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 packager.c 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 +#include + + +int main(int argc, char **argv) +{ + Ti9xFlash content; + + tifiles_init(); + + + + return 0; +} -- cgit v1.2.3