Assembly language learning
Reference: Use Wang Shuang wrote, "assembly language" Third Edition
learning tools (Win7 x64): DOSBox 0.74, masm.exe, LINK.EXE, Debug.exe.
Also need a editor for editing source code, it recommended sublime text. The need to support assembler syntax highlighting here to download plug-ins: https://github.com/Nessphoro/sublimeassembly
Contents Introduction
Learning Tools : contains the tools required under win7 64 bit: DOSBox 0.74 installation package, masm.exe, LINK.EXE, Debug.exe
experiment.asm : The above reference and experimental practice (incomplete, but in which the code required)
64 under the windows7 DOSBox use:
step1: New Folder (Below C:\coding\assembly-language-learning
an example)
step2: the debug.exe
, masm.exe
, link.exe
into the C:\coding\assembly-language-learning
folder
step3: open DOSBox. Here you can see Z: \ DOSBox in the virtual disk, we use the mount command to convert it to a C:\coding\assembly-language-learning
directory, if only by this time, you can enter the following commands directly from the command line:
Z:\> mount d C:\coding\assembly-language-learning
Z:\> D:
D:\>
If it has been used, you can modify autoexe, as follows: Open DOSBox 0.74 Options
, found in the open file [autoexec]
(should be in the last position of the text), add the following two commands above as at the end of
[autoexec]
\# Lines in this section will be run at startup.
\# You can put your MOUNT lines here.
mount d c:\coding\assembly-language-learning
D:
step4: Next in the directory C: \ coding \ write source code at assembly-language-learning (assuming that 1.asm) and compile and run as follows links or debugging
[autoexec]
D:\>masm 1; 快速编译(省略生成中间文件)
D:\>link 1; 快速链接(省略生成中间文件)
D:\>1.exe 运行可执行程序
D:\>debug 1.exe debug中进行调试