Improve 2015/muth/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-29 10:21:01 -08:00
1 parent bf35aeee78
commit e67bc64d9c
1 file changed
+5 -7
+5 -7
View File
@@ -19,16 +19,15 @@ clear
echo "$ make -B V=2 run" 1>&2 echo "$ make -B V=2 run" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): " read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2 echo 1>&2
make CC="${CC}" -B V=2 run | less -EXF read -r -n 1 -p "Press any key to run: make CC=${CC} -B V=2 run (space = next page, q = quit): "
echo 1>&2 echo 1>&2
make CC="${CC}" -B V=2 run | less -rEXFK
echo 1>&2 echo 1>&2
echo "$ strings prog | grep '(,)'" 1>&2 read -r -n 1 -p "Press any key to run: strings prog | grep '(,)' (space = next page, q = quit): "
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2 echo 1>&2
strings prog | grep '(,)' | less -EXF strings prog | grep '(,)' | less -EXF
echo 1>&2 echo 1>&2
echo 1>&2
for h in machine*.h; do for h in machine*.h; do
for t in tape*.h; do for t in tape*.h; do
@@ -37,9 +36,8 @@ for h in machine*.h; do
if [[ "$REPLY" == "q" || "$REPLY" == "Q" ]]; then if [[ "$REPLY" == "q" || "$REPLY" == "Q" ]]; then
exit 0 exit 0
fi fi
echo 1>&2
make -B MACHINE="$h" TAPE="$t" V=1 run make CC="${CC}" -B MACHINE="$h" TAPE="$t" V=1 run
echo 1>&2
echo 1>&2 echo 1>&2
done done
done done