setup.sus
来自「汇编&c语言code」· SUS 代码 · 共 178 行
SUS
178 行
cls :a 30 "MASM 5.10 Setup"
echo "Warning:"
echo
echo " Before installing the assembler files, you should make backup"
echo " copies of the new distribution disks. Because of system variations,"
echo " this is not included as part of setup."
echo
echo " If you have files with the same file names as files copied during"
echo " installation, the old versions will be overwritten. For example,"
echo " a previous version of MASM.EXE would be lost."
echo
echo " If you have not backed up the distribution disks or if you do"
echo " not have copies of old versions, you should make backup copies now."
echo
set yes="yes"
dialog simple,yes,"Press Enter to continue: "
if (yes != "yes") then exit 1
cls
echo "Select Operation configuration"
echo
echo " dos - is for all version of MSdos 2.x & 3.x"
echo " os2 - is for protect mode only support for OS/2"
echo " both - is for protect mode & real mode for OS/2"
echo
set os="dos"
if (dosVersion >= 1000) then set os="os2"
:selectOS
dialog simple,os,"Enter dos,os2 or both: "
if (os == "dos") then goto ok1
if (os == "os2") then goto ok1
if (os != "both") then goto selectOS
:ok1
cls
echo "Next you will enter the directory setup will install the MASM files."
echo "When prompted for a path, enter the drive and directory."
echo "For example: C:\, c:\masm."
echo "To accept the proposed response, just press Enter."
echo
set asmDir="C:\masm"
dialog simplePath,asmDir,"Enter path for MASM files: "
if (os != "os2")
set exeDir=asmDir:d
set exeDir=exeDir&"\bin"
dialog simplePath,exeDir,"Enter path for DOS excutable programs: "
else
set exeDir=asmDir
endif
if (os != "dos")
set exeDirb=exeDir:d
set exeDirb=exeDirb&"\binb"
dialog simplePath,exeDirb,"Enter path for dual mode excutable programs: "
set exeDirp=exeDir:d
set exeDirp=exeDirp&"\binp"
dialog simplePath,exeDirp,"Enter path for OS/2 mode excutable programs: "
else
set exeDirp=exeDir
set exeDirb=exeDir
endif
set incDir=asmDir:d
set incDir=incDir&"\include"
dialog simplePath,incDir,"Enter path for include files: "
set volId="MASM"
copy "packing.lst readme.doc" asmDir
copy "mixed\mixed.inc" incDir
set mixDir=incDir&"\mixed"
copy "mixed\*.asm mixed\*.pas mixed\*.c mixed\*.for mixed\*.bas mixed\*.doc" mixDir
copy "show.exe cref.exe" exeDirb
if (os == "dos") then copy "masm.exe" exeDir
set volId="Utilities"
copy "exehdr.exe lib.exe make.exe cvpack.exe" exeDirb
if (os != "os2") then copy "errout.exe exemod.exe exepack.exe setenv.exe" exeDir
if (os == "dos") then copy "mouse.com link.exe" exeDir
set volId="CodeView"
copy "macro.doc" asmDir
if (os != "os2")
copy "bios.inc dos.inc" incDir
copy "cv.*" exeDir
copy "showr.asm pagerr.asm" asmDir
endif
if (os != "dos")
set volId="OS2 Program"
copy "bind.exe ilink.exe implib.exe masm.exe link.exe" exeDirb
if (os != "os2") then copy "exec.exe" exeDir
copy "cvp.*" exeDirp
copy "*.inc doscalls.lib api.lib apilmr.obj" incDir
copy "pagerp.asm showp.asm show os2.doc makeshow.*" asmDir
endif
cls
echo "Other recommended setup options include:"
echo
echo "In CONFIG.SYS:"
if (os == "dos")
echo
echo " FILES=20 (or higher)"
echo " BUFFERS=10 (or higher)"
echo " SHELL COMMAND.COM /E:256 /P (set environment to 256 or more bytes)"
else
echo " IOPL=YES (allow CVP to run)"
endif
echo
if (os == "dos")
echo "In AUTOEXEC.BAT:"
else
echo "In STARTUP.CMD:"
endif
echo
if (os == "dos") then echo " MOUSE (load mouse driver if you have a mouse)"
echo " SET PATH="exeDir"... (directory containing MASM and utilities)"
echo " SET INCLUDE="incDir"... (directory containing include files)"
echo " SET LIB="incDir".... (directory containing library and object files)"
echo " SET MASM=options (standard assembly options)"
echo " SET LINK=options (standard link options)"
echo " SET TMP=tempDir (LINK work directory - use RAM disk if available)"
echo
if (dosVersion <= 320)
echo "Increase the environment size to 256 bytes (or higher) with the"
echo "follow command line:"
echo
echo " SETENV COMMAND.COM 256 (make sure you have a backup first)"
endif
set yes="yes"
dialog simple,yes,"Would you like to install the editor? "
if (yes == "yes")
set volId="Editor"
call "a:\editor"
cls
endif
set drive=asmDir:d
cd drive
cd asmDir
set yes="no"
dialog simple,yes,"Would you like to run the CodeView Demo? "
if (yes != "no")
set volId="CodeView"
copy "*.cv showr.exe" asmDir
call "a:\setup"
exec COMSPEC "/c del *.cv"
exec COMSPEC "/c del showr.exe"
cls
endif
set yes="yes"
set show=exeDirb&"\"
set show=show&"show"
dialog simple,yes,"Would you like to view the packing list? "
if (yes == "yes")
exec show "packing.lst"
cls
endif
set yes="yes"
dialog simple,yes,"Would you like to view the documentation notes? "
if (yes == "yes") then exec show "readme.doc"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?