汇编8086学习之Mac配置
DOSBox
下载 https://sourceforge.net/projects/dosbox/
挂载
mount c ~/asm
c:TASM 4.0
下载
hdiutil attach /YOUR/DOWNLOAD/PATH/disk01.img
cp -R /Volumes/NO\ NAME/* ~/asm
hdiutil detach /Volumes/NO\ NAME重复1-4
安装
在DOSBox中
INSTALL跳出安装界面,根据指示进行安装
安装过程中会出现警告
Warning: Unable to locate your C:\Windows\SYSTEM directory. The file BWCC.DLL is in your Borland Turbo Assembler binary files directory: C:\TASM\BIN
这是正常现象,忽略即可
安装成功后,显示
Installation of Borland Turbo Assembler 4.0 is completed. You now must update the PATH statement in your AUTOEXEC.BAT file to include the TASM/BIN subdirectory and reboot your computer. To install Win32s, insert Disk4 into drive A and type 'WIN A:SETUP' . Win32s is required to run and debug 32-bit Windows programs under Windows 3.1
这也是正常的结束语,不需要完全照做。
接下来exit退出,准备修改配置文件。
打开MacOS终端
/Applications/DOSBox.app/Contents/MacOS/DOSBox -printconf这里我的输出是/Users/hechenyu/Library/Preferences//DOSBox 0.74-3-3 Preferences
那么下一步
nano "/Users/hechenyu/Library/Preferences/DOSBox 0.74-3-3 Preferences"粘贴配置内容
ini
[autoexec]
# Lines in this section will be run at startup.
mount c ~/asm
c:
cd \TASM\BIN
set PATH=C:\TASM\BIN;C:\TASM;C:\
cls
@echo ========================================
@echo Turbo Assembler 4.0 Environment Ready!
@echo Current Dir: C:\TASM\BIN
@echo Type 'tasm hello.asm' to compile.
@echo Type 'td hello.exe' to debug.
@echo ========================================ctrl+O保存,ctrl+X退出