dos_compilers/Microsoft C v203/m.sh
2024-07-04 09:40:33 -07:00

13 lines
255 B
Bash

str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.OBJ 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.EXE 2>/dev/null
ntvdm -r:. -u mc1 $str
ntvdm -r:. -u mc2 $str
ntvdm -r:. -u link $str + cs + gettm,, $str.map, mcs
rm $str.OBJ 2>/dev/null
rm $str.MAP 2>/dev/null