This tutorial briefly introduces how to use the product above
Reference link : https://www.cnblogs.com/yangmingyu/p/6928143.html#undefined
1. Download masm32, install
[masm official download: http://www.masm32.com/download.htm ]
2. Open QEDITOR.EXE (my installation path is D\Masm\c)
After installing MASM32, open "Explorer" or "My Computer", enter the folder where MASM32 is located, and double-click QEDITOR.EXE
⒊ Input the source program and save it
Use the menu File -> Save on the menu bar or the disk-like icon representing the save function in the shortcut toolbar, the first time you need to enter the file name,
Note that you specify the extension .ASM [1.ASM in this example].
sample code
.386 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib .data HelloWorld db "Hello World!", 0 .code start: invoke MessageBox, NULL, addr HelloWorld, addr HelloWorld, MB_OK invoke ExitProcess, 0 end start
In the code, "/masm32/include/" and "/masm32/lib/" respectively limit the paths of include files and library files recognized by Quick Editor. This way, Quick Editor can find these files even if we don't set the corresponding paths in the operating system's environment variables.
⒋Assembly source program
Use the menu Project -> Assemblier ASM file on the menu bar. Then the system will open a DOS window to run the relevant batch file.
After the end, 2 windows will pop up to report results.
⒌ Link object files.
Use the menu Project -> Link OBJ file on the menu bar.
At this time, the system will open a DOS window to run the relevant batch file, and a pop-up window will report the result (the picture will not be shown to save space)
⒍ Run the generated executable file
Use the menu Project -> Run program on the menu bar. [On the left is what runs out]
Look at the directory below,
.asm from step 3
.obj comes from step 4
.exe comes from step 5 (double-click 1.exe to get the same result as run)
Links to similar tutorials:
http://blog.csdn.net/sarkuya/article/details/2207716
http://blog.csdn.net/a949308398/article/details/39805927
http://blog.csdn.net/a949308398/article/details/39805927