.Key file

if not exists <file>.c
   echo "File <file>.c does not exist.  Try again."
   skip END
   endif
echo "-- compiling...<file>.c"

lc1 -b0 -cc -cw -oQUAD: -i:Source/include <file>
if not exists "QUAD:<file>.q"
   echo "Compile failed."
   quit 20
   endif

lc2 -oObj: -v -y QUAD:<file>
;
;	Note: stack checking is disabled by -v!
;	Note: base register is unconditionally loaded by -y!
;

if not exists "OBJ:<file>.o"
   echo "Pass 2 failed."
   endif
LAB END

copy Source:<file>.c Sourcedisk:Source quiet
copy Obj:<file>.c Sourcedisk:Source/Obj quiet
