In 64-bit windows, how does one use masm and link to compile assembly files ?, Masmlink
The 32-bit system has a debug program and can debug the Assembly Language and exe. But the real assembly programming is "editing the assembly program file (. asm)-> compiling and generating the obj file-> linking to generate the exe file ". Next, let me explain how to use masm debugging and link in windows.
1. Download the corresponding software
Download masm.exeand link.exe and decompress (MOVE) it to a custom directory (for example, my directory is d: \ dos)
Personal Address: http://pan.baidu.com/s/1i5hUFdj
2. masm and link Environments
If your system is 32-bit winxp or win7, you can go to the cmd interface and use the following command to switch to the directory where masm and link are located:
If your system is a 64-bit system, you cannot run it directly using cmd. In this case, we can use the dosbox software. I have introduced the use of this software in the previous article.
Open the dosbox software and Virtualize a drive letter to the directory where the masm and link are located. For example, virtualize the drive letter C into the d: \ dos directory on the physical machine, and then jump to the virtual drive letter (folder)
3. Use masm and link
First, compile the Assembly source program (*. asm) by using a text editor or other tools and save it in the directory where masm and link are located:
Then you can use masm and link:
4. Follow-up
The exe executable file generated after link can be debugged using debug. In addition, you can modify the configuration file of dosbox if you have to input the mount command every time you start dosbox. You can view the dosbox startup window for the location of the configuration file.