Added a mips_to_c script to make it easier to use it

This commit is contained in:
Ryan Myers
2021-10-06 21:50:04 -04:00
parent 6622c7a7fd
commit 719488f4d4
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -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.
.*/
Executable
+4
View File
@@ -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