home *** CD-ROM | disk | FTP | other *** search
- CLS
- masm asmgen3,asmgen3,asmgen3;
- if errorlevel == 1 goto error1
- link asmgen3 ;
- rem LINK normally issues a missing STACK segment warning here.
- del ASMGEN3.COM
- exe2bin ASMGEN3 ASMGEN3.COM
- if not exist ASMGEN3.com goto ERROR
- del asmgen3.obj
- del asmgen3.exe
- rem now try ASMGEN3 on ASMGEN.COM
- asmgen3 asmgen.com asm3.asm ;
- rem now reassemble ASMGEN as ASM3
- masm asm3,asm3,asm3;
- if errorlevel == 1 goto error2
- rem Don't worry about 116 warning errors from MASM (ver 5.0)
- link asm3 ;
- rem LINK normally issues a missing STACK segment warning here.
- del ASM3.COM
- exe2bin ASM3 ASM3.COM
- if not exist asm3.com goto ERROR2
- del asm3.obj
- del asm3.exe
- rem now compare the results
- FC/B ASMGEN.COM ASM3.COM
- goto end
- :error
- echo -- Error converting file .EXE to .COM
- goto end
- :error1
- echo -- Assembly error, asmgen3.OBJ not created, see asmgen3.LST for errors. --
- goto end
- :error2
- echo -- Assembly error, asm3.OBJ not created, see asm3.LST for errors. --
- :end
-