This will facilitate the edit-compile-link-run cycle when developing a program
Copy the script below into a file called, for example, exe. Then set the file's protection to allow it be run as a script:
chmod +x exeNow you can run the script using your lab name as its argument, for example:
exe lab1
The script follows:
#!/bin/csh
if ($#argv) then
set prog = $argv[1]
isem-as -als $prog.s -o $prog.o
isem-ld $prog.o -o $prog
isem $prog
else
echo "this takes a single argument of a filename (without extension) of a 360 isem lab"
echo "usage: exe <fn>"
echo "and does the following:"
echo " isem-as -als <fn>.s -o <fn>.o"
echo " isem-ld <fn>.o -o <fn>"
echo " isem <fn>"
endif