Masm for Windows provides the assembly function. You can directly program new projects through this software. The software has already provided many case contents. You can load simple introductory program cases, and then start the training program, so that you can start to learn the assembly content on the software, and it is also convenient for users to edit new projects. The software provides the sum of two numbers of assemblers, the sum of two numbers of assemblers Simply draw rectangle programs and call assembly macro library programs. These contents can be opened directly on the software. You can also test the assembly project on the software. You can run programs, debug programs, and download and try if you need.
software function
Introduction to Masm for Windows Integrated Experimental Environment
Masm for windows The integrated experimental environment is an assembly language learning and experimental software developed based on the concept of "programming is not learned, but practiced" and aimed at the characteristics of assembly language beginners. It inherits the simple and easy to use characteristics of the original software and is convenient for users to practice assembly programs on the network, on computers, and in books. Supports 32-bit and 64 bit operating system WINDOWS On 7/8/10, it supports DOS 16/32 bit assembler and Windows 32 assembler (and provides 34 Windows assembler instance source codes that have passed debugging) and rich assembly resources.
1. Automatic positioning, intelligent indentation, syntax coloring, display of program line number, Word style search, replacement, positioning, unlimited undo, recovery, assembly instruction animation demonstration and other functions of retaining the error information of the original software.
2. It is convenient to practice the programs in "Simple Starter Instance", "DOS Assembly Instance Source Program" and "Windows Assembly Instance Source Program" in the resource navigation bar, as shown in the figure, right click to open Hello in the simple starter instance World program control exercise.
3. It is convenient to practice the assembly program on the network
3. It is convenient to practice the assembly program on the book, and copy the mobile phone photo textbook program to the computer for practice.
4. Easy to practice the assembly program on the computer
Software features
1. The software is newly developed and designed from VB to VC++.
2. According to the characteristics of C language beginners, we designed the intensive programming training process of [Programming Introduction Training - Intensive Programming Training - Comprehensive Programming Training].
3. Design two comprehensive programs from simple to difficult (simple calculator, address book management system) by using the method of "top-down, step-by-step refinement" to train the user's ability to design comprehensive programs
4. Common assembly instruction query, data transmission instruction (free), arithmetic operation instruction, logic operation instruction, string operation instruction, program transfer instruction
usage method
1. Install Masm for windows directly to the computer, and set the installation address of the software
2. Prompt the software installation progress bar, and wait for the software installation to end
3. Display resource cases, open my program directly on the left side of the software to use
4. Project creation function, which can learn programming on software, and then create a new assembly project
5. Open the training program and view the case content in the software to open the practice interface
6. Run function, save your programming content, and click Run on the software interface
7. Program template
DOS assembly template (complete section)
DOS assembly template (simplified section)
Win32 Console Assembly Template
Win32 Assembly Template
8. Multi module connection function, you can directly select to add OBJ files, connect and run, and set OBJ folders on the software
Official Tutorial
Debug assembler
Integrate CV (full name CodeView) and DEGUB debugging tools in Masm for Windows. The default is DEBUG debugging program, which can only be used by CV registered users.
(1) Debugging with CV
Click Run to generate the EXE file, and then click Debug to open the interface as shown in Figure 1. Note: Figure 1 is the assembly program for debugging 3+5. When pressing F10 or entering P command in the command window continuously, execute to ADD AL, 03, you can see that the value of AL is 8.
1. Function key of CV
F2: Display/Implied Register Group Window
F3: Display the currently executed program in different display modes
F4: Display the output screen of the program
F5/F7: Execute to the next logical breakpoint, or to the end of the program
F6: successively enter the window displayed on the current screen
F8: Step the instruction and enter the called subprogram
F9: Set/cancel the breakpoint in the source program line. Double click it with the left mouse button
F10: Single step execution of instructions without entering the called subprogram
Find 3+5 assembly source program
DATAS SEGMENT
FIVE DB 5
DATAS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS
START:
MOV AX,DATAS
MOV DS,AX
MOV AL,FIVE
ADD AL,3
ADD AL,30H
MOV DL,AL
MOV AH,2
INT 21H
MOV AH,4CH
INT 21H
CODES ENDS
END START
(2) Debug with DEBUG
① Click the setting diagram of Common Ribbon, select DEBUG Debugging, and then click OK.
② Click Run to generate the EXE file, and then click Debug to open the interface shown in Figure 3. Note: Figure 3 is the assembly program for debugging 3+5. When the continuous input of P command is executed to the ADD AL, 03, you can see that the value of AL is 8.
Module connection
If a program consists of more than one ASM modules shall be assembled and generated respectively OBJ file, and then connect to generate an EXE file.
Hello World! The program is adapted into M1.ASM and M2.ASM, where the function of M1.ASM displays Hello And call OUTMSG in M2.ASM to display World!
(1) M1.ASM source program is as follows:
EXTRN OUTMSG:far ; Description subprogram OUTMSG in M2.asm
DATAS SEGMENT
MSG DB 'Hello ','$'
DATAS ENDS
CODES SEGMENT
ASSUME CS:CODES,DS:DATAS
START:
MOV AX,DATAS
MOV DS,AX
mov dx,OFFSET MSG
mov ah,09h ; Show Hello
int 21h
call far ptr OUTMSG ; Call subprogram OUTMSG in M2.asm to display World!
MOV AH,4CH
INT 21H
CODES ENDS
END START
(2) M2.ASM source program is as follows:
PUBLIC OUTMSG
DATAS SEGMENT
MSG DB 'World!', 13,10,'$'
DATAS ENDS
CODES SEGMENT
OUTMSG PROC FAR
ASSUME CS:CODES,DS:DATAS
MOV AX,DATAS
MOV DS,AX
mov dx,OFFSET MSG
mov ah,09h
int 21h ; MSG is displayed and the result is "World!"
ret
OUTMSG ENDP
CODES ENDS
END
(3) Method of module connection
1) Use the integrated experimental environment (the compiler can select Masm5.0 or ML6.11) to save the above two programs as M1.ASM and M2.ASM respectively (Note that it should be in the same folder), and compiled into M1.OBJ and M2.OBJ respectively
2) Click to select the "Multi module Connection" functional area, click the "Multi module Connection" button, set the folder where M1.OBJ and M2.OBJ are located, and add M1.OBJ and M2.OBJ respectively, as shown in Figure 1
Figure 1 Multi module connection
3) Then click Connect and Run to display the program running results.
Tip: There are instances of the above programs in the "Simple Starter Program Instance" in the "Resource Navigation Bar".