Files
Diddy-Kong-Racing/mips_to_c.sh
T

5 lines
192 B
Bash
Executable File

#!/bin/sh
ASMFILE=$(find . -type f -name "*$1.s")
echo '#include "ctx.c"\n' > $1.c
python3 ../mips_to_c/m2c.py --target mips-ido-c --pointer-style right --context ctx.c -f $1 $ASMFILE >> $1.c