diff --git a/.gitignore b/.gitignore index 35213355..f1901f2f 100755 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,10 @@ ucode/ # Linker file is automatically generated, so it should be ignored dkr.ld +# CTX files for mips2c should be ignored as we generate those +ctx.c +ctx_includes.c + # Misc stuff that should be ignored. .*/ diff --git a/mips_to_c.sh b/mips_to_c.sh new file mode 100755 index 00000000..17f5913d --- /dev/null +++ b/mips_to_c.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +ASMFILE=$(find . -type f -name "*$1.s") +python3 ../mips_to_c/mips_to_c.py --context ctx.c -f $1 $ASMFILE > $1.c \ No newline at end of file