dos_compilers/Microsoft Pascal v1/m.sh

25 lines
564 B
Bash
Raw Normal View History

2024-07-04 21:42:58 +02:00
str=$(tr '[a-z]' '[A-Z]' <<< $1)
2024-07-05 23:18:32 +02:00
# -h flag is required for pas2 and generated apps so the top of ram is on a 64k-1 boundary
# due to bugs in the apps that try to copy 64k-1 bytes of ram and wrap.
2024-07-04 21:42:58 +02:00
rm $str.EXE 2>/dev/null
rm $str.COD 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -r:. -u -c pas1 $str,$str,$str,$str
rm CON.LST 2>/dev/null
ntvdm -r:. -u -h -c pas2
ntvdm -r:. -u -c link $str djldos,,,,
rm $str.COD 2>/dev/null
rm $str.LST 2>/dev/null
rm $str.MAP 2>/dev/null
rm $str.OBJ 2>/dev/null
ntvdm -h -p $str