Û-READ ME ­CASM2 SUB²ÖASM2 ZEX/LASM SUB *¼LASM ZEXDÈM80 SUB çÔM80 ZEX MAC SUB ðMAC ZEXBóÿÿDate: Sept. 10, 1984 To: Keith Petersen W8SDZ From: Rick Conn Re: Submit/Zex files I promised you some assembler files some time ago. Here they are now, feel free to place them where you wish. They are the SUB and ZEX files I use for the following assemblers: ASM2 - CP/M 2.2 Assembler LASM - Ward's LASM MAC - DRI's MAC M80 - Microsoft's M80 Enjoy! Rick ; CP/M 2.X ASSEMBLER AND LOADER ASM2 $1.BBZ SUB /A PLEASE ABORT IF ERROR(S) EXIST ERA $1.BAK ERA $1.COM MLOAD $1 ERA $1.HEX ; ASSEMBLY COMPLETE ; LASM - Link ASSEMBLER AND LOADER LASM $1.BBZ SUB /A PLEASE ABORT IF ERROR(S) EXIST ERA *.BAK ERA $1.COM MLOAD $1 ERA $1.HEX ; ASSEMBLY COMPLETE ; M80.SUB -- MACRO-80 Assembler and Linker M80 =$1 SUB /A PLEASE ABORT IF ERROR(S) EXIST ERA $1.BAK ERA $1.COM L80 /P:100,$1,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E ERA $1.REL ; ASSEMBLY COMPLETE ; MAC -- CP/M Standard MACRO Assembler and Loader MAC $1 $$PZ SZ SUB /A Please Abort if Error(s) Exist ERA $1.BAK ERA $1.COM MLOAD $1 ERA $1.HEX ; End of Assembly ; ; CP/M 2.X Assembler and Loader ; ; ^& Suppress FALSE IF Printout ; IF NUL $1 ECHO ** File Name Required for Assembly ** ELSE ASM2 $1.BBZ ;NOTE Perform Assembly IF INPUT Abort if Errors Exist ERA $1.BAK ;NOTE Cleanup Files ERA $1.COM MLOAD $1 ;NOTE Load Hex File FI ERA $1.HEX FI ; ; Assembly Complete ; ; ; LASM -- Link Assembler and Loader ; ; ^& Suppress FALSE IF Printout ; IF NUL $1 ECHO ** File Name Required for Assembly ** ELSE LASM $1.BBZ ;NOTE Perform Assembly IF INPUT Abort if Errors Exist ERA *.BAK ;NOTE Clean Up Files ERA $1.COM MLOAD $1 ;NOTE Load Hex File FI ERA $1.HEX FI ; ; Assembly Complete ; ; ; M80.ZEX -- MACRO-80 Assembler and Linker ; Up to 4 Libraries Specified ; ; ^& Suppress FALSE IF Printout ; if nul $1 ;note Print Error Message echo ** Name of File to Assemble Required ** else ;note Perform Assembly M80 =$1 if input Abort if Errors Exist ERA $1.BAK ERA $1.COM if ~nul $5 ;note Link 4 Additional Libraries L80 /P:100,$1,$2/S,$3/S,$4/S,$5/S,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E goto done fi if ~nul $4 ;note Link 3 Additional Libraries L80 /P:100,$1,$2/S,$3/S,$4/S,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E goto done fi if ~nul $3 ;note Link 2 Additional Libraries L80 /P:100,$1,$2/S,$3/S,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E goto done fi if ~nul $2 ;note Link 1 Additional Library L80 /P:100,$1,$2/S,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E goto done else ;note Standard Link L80 /P:100,$1,A:Z3LIB/S,A:SYSLIB/S,$1/N,/U,/E ;=done Done with Link fi ;note on IF ~NUL Tests fi ;note on IF INPUT ERA $1.REL fi ;note on IF NUL ; ; Assembly Complete ; ; ; MAC -- CP/M Standard MACRO Assembler and Loader ; ; ^& Suppress FALSE IF Printout ; IF NUL $1 ECHO ** Name of File to Assemble Required ** ELSE ;NOTE Perform Assembly MAC $1 $$-S PZ IF INPUT Abort if Errors Exist ERA $1.BAK ;NOTE Cleanup ERA $1.COM MLOAD $1 ;NOTE Load Hex File FI ERA $1.HEX FI ; ; Assembly Complete ;