echo off
logo %1
if ERRORLEVEL == 5 goto end:
if ERRORLEVEL == 4 goto VGA:
if ERRORLEVEL == 3 goto EGA:
if ERRORLEVEL == 2 goto CGA:
if ERRORLEVEL == 1 goto HGC:
if ERRORLEVEL == 0 goto run: 
:VGA
set esi=vga
goto run
:EGA
set esi=ega
goto run
:CGA
set esi=cga
goto run
:HGC
set esi=herc
:run
80x87
if ERRORLEVEL == 1 goto sys:
echo WARNING! Your system does not have a math coprocessor installed.
echo This demo program will run significantly faster with a math coprocessor.
pause
:sys 
sysdemo
:end
echo   Thank you for trying the SYSid demo disk.
echo   For further information, call Ariel at (201) 249-2900.
echo on