rem  Batch file for building with Cosmic (s:\software\cosmic, assumed
rem      to be in your PATH).  Compile and link.
rem  It is parameterized to be invoked with a root filename, e.g.
rem      cc16 rootname  // assumes file extension .c
rem  And assumes a linker command file is available in the current
rem     directory with the same root name (e.g., rootname.lnk in this case).
rem  The end result will be the CPU16 loadfile rootname.abs
rem
rem  Option description:
rem  -v  verbose mode of compiler driver
rem  -dxdebug  generate debugging information
rem  -dmods    small model
rem
rem Build startup once only
rem c -dCOSMIC=1 -v -dxdebug -dmods +o crts.s
rem
lnkh16 <%1.lnk
to695 -mods -p6816 %1.h16
copy %1.695 %1.abs
