In 64-bit windows, how does one use masm and link to compile assembly files ?, Masmlink

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.