PCPLUS.BAT ·
BAT ·
2.4 KB ·
1988-01-08 ·
from PCPlus_Issue-30_Mar-1989
echo off
cd intro
scrdisp title
scrdisp jan1
:menu
cd ..\intro
scrdisp jan2
if errorlevel 193 goto menu
if errorlevel 192 goto F6
if errorlevel 191 goto F5
if errorlevel 190 goto F4
if errorlevel 189 goto F3
if errorlevel 188 goto F2
if errorlevel 187 goto F1
if errorlevel 28 goto menu
:F1
cd ..\mixc
echo off
cls
echo This is an example of how the Mix C compiler can be used to compile
echo a C source file, and link it to make an executable .COM program.
echo The sample C file, called LUMPSUMS.C is first compiled with the
echo command CC LUMPSUMS.
echo.
pause
echo.
CC LUMPSUMS
echo.
pause
cls
echo Once the file has been compiled it has to be linked with routines
echo from the C libraries to make an executable file. This is done with
echo the LINKER program. The command is just as straightforward -
echo LINKER LUMPSUMS.
echo Both these operations, and any debugging of the C program which
echo proves necessary, can be carried out from within the integrated Mix
echo C editor, which along with the trace debugger, will be provided on
echo next month's SuperDisk.
echo.
pause
echo.
LINKER LUMPSUMS
echo.
pause
cls
echo Once the file has been compiled and linked, it becomes a regular .COM
echo file and can be run by typing its name. This program calculates four
echo types of repayment or lumpsum values, which can be selected from a menu.
echo.
pause
echo.
LUMPSUMS
goto menu
:F2
cd ..\utils
QREF
goto menu
:F3
cd ..\games
WEASEL
goto menu
:F4
cd ..\games
SNAKE
goto menu
:F5
cd ..\shorties\explode
cls
echo First of all a demonstration of the EXPLODE utility, which is in
echo the EXPLODE sub-directory of the SHORTIES sub-directory. Just the
echo thing to brighten up your batch files.
echo.
pause
cls
echo Explode can be used to display:
echo Logos ...
EXPLODE PCPLUS.PIC 5 6 SOUND
echo Pictures ...
EXPLODE CASTLE.PIC 43 13 SOUND
echo Graphs ...
EXPLODE GRAPH.PIC 3 14 SOUND
echo Text ...
EXPLODE TEXT.PIC 50 2 SOUND
pause
cd \shorties
cls
echo You're in the SHORTIES sub-directory.
echo.
echo This contains a number of smaller utilities, further details of
echo which are in the SuperDisk section of the magazine. Some have
echo documentation in .DOC files, which you can read using the MS-DOS
echo TYPE command.
echo.
echo Here's the directory listing...
dir
goto end
:F6
cd ..\
cls
:end