home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
fwktl101.zip
/
MK_HWALP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-28
|
2KB
|
56 lines
@echo off
cls
if .%1 == ./R goto a
if .%1 == ./r goto a
echo.Part of the FWKTL(TM) Text_program Launcher kit, version 1.01.
echo (C)Copyright Frederick W. Kantor 1996. All rights reserved.
echo.
echo. MK_HWALP.CMD for use with
echo. HELOWRLD.ASM,
echo. HELOWRLD.DEF,
echo. IBM Assembly Language Processor (ALP), Ver. 3.00.004 or later,
echo. LINK386, and
echo. FWKTRIM.EXE, version 1.01.
echo.
echo. Usage: MK_HWALP /r "<enter>"
echo.
echo. Output:
echo. HELOWLD2.COM for loading with FWKTL
echo. HELOWRLD.DLL intermediate step, before stripping
echo. HELOWRLD.LST code list, from ALP
echo. HELOWRLD.MAP byproduct of LINK386
echo. HELOWRLD.OBJ intermediate step, made by ALP
echo. REPORT describing work done by ALP
echo.
goto z
:a
if not exist helowrld.asm goto h0
if not exist helowrld.def goto h1
fwktrim /ver
if errorlevel 102 goto h2
if not errorlevel 101 goto h2
echo on
alp +Sme +Fl -Sfs -Sc +M:ALL+ +Lp:ALL helowrld.asm > report
if errorlevel 1 goto z
LINK386 /ALIGN:4 /PM:PM /BASE:0x010000 /RUNFROMVDM /NOS /L /M /NOF /NOP helowrld.obj,helowrld.dll,helowrld.map,,helowrld.DEF
if errorlevel 1 goto z
fwktrim < helowrld.dll > helowld2.com
goto z
:h0
echo.
echo. Did not find HELOWRLD.ASM
goto x
:h1
echo.
echo. Did not find HELOWRLD.DEF
goto x
:h2
echo.
echo. Need FWKTRIM.EXE version 1.01.
:x
echo.
echo. Execution aborted.
:z
@echo off
echo.