DOS QAM -- Automated Quick Assembly Method

Basic approach

Build a file in your working directory called "doit.bat". Additional commands will be needed later, but to complete the current assembly all you need are the lines

@echo off
@echo "Assembling the HVZ code for task 1"

REM "Delete an existing object file if one exists"
REM "This avoids problems of the linker attempting to use"
REM "an old object file if the as68000 operation fails"
if exist t1v0a.o erase t1v0a.o

as68000 -V 68020 -L -m -o t1v0a.o t1v0a.s

and should issue the DOS command doit.


More general approach

Since we will be using a number of source file versions during Laboratory 1, a better form form of the doit.bat file is

@echo off
@echo "Assembling the code for " %1

REM "Delete an existing object file if one exists"
REM "This avoids problems of the linker attempting to use"
REM "an old object file if the as68000 operation fails"
if exist %1.o erase %1.o

as68000 -V 68020 -L -m -o %1.o %1.s

The following lines show examples of the use of the "doit" file

This "doit" file approach to assembling (and later linking) files will work


Last modified: July 12, 1996 05:48 PM by M. Smith.
Copyright -- M. R. Smith