dos_compilers/Microsoft MASM v5/m.sh

18 lines
369 B
Bash
Raw Normal View History

2024-07-04 21:37:35 +02:00
str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.EXE 2>/dev/null
rm $str.CRF 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
rm $str.LST 2>/dev/null
ntvdm -r:. -u -h bin/masm /Zi /Zd /z /L $str,,,\;
ntvdm -r:. -u -h bin/link /CP:1 $str,,$str,,nul.def
rm $str.CRF 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
rm $str.LST 2>/dev/null
ntvdm -u $str