3 echo "Preprocessing code.asm..."
8 echo "#include <stdio.h>" > $outfile
10 echo "void asm_print(FILE *output) {" >> $outfile
11 sed 's/\(^.*$\)/ fputs(\"\1\\n", output);/' code.asm
>> $outfile
14 echo "#ifndef ASSEMBLY_H" > $outfileh
15 echo "#define TABLES_H" >> $outfileh
17 echo "void asm_print(FILE *output);" >> $outfileh
19 echo "#endif" >> $outfileh