echo off rem DOS BATCH FILE ASM.BAT rem usage: asm "filename" rem filename without extension rem default extension for an assembly source file is .ASM rem if not exist %1.asm goto error rem rem assembly of source file rem source file must have an "OPT s directive" rem and generation of S-record file %1.s19 as11 %1.asm -l c s >%1.lst rem the assembly listing redirected to file %1.lst rem rem Build Script File with Symbol Table rem rem load buffalo monitor emulator setup echo restore buffalo.sav>%1 rem load S-record file echo load %1.s19 >>%1 rem set initial pc echo pc c000 >>%1 rem set initial memory display echo md de00 >>%1 rem load symbol table echo script %1.sym>>%1 rem strip symbol table from listing and append it to script strip %1.lst >%1.sym rem In the simulator type: script %1 to load your setup goto end :error echo could not find source file %1.asm :end