Assembly Language for x86 Processors---Assembly environment configuration (VS2019 + irvine link library)

Proceed as follows:

1 Download VS community 2019 (VS2019 Community Edition): You can download it directly from the official website for free ( VS official website )!

Download irvine link library ( irvine link library download )

2 Create a C++ empty project:

Insert picture description here

3 The project is completed, open the Solution Explorer --> right click on the project --> Generate Dependency --> Generate Custom

Insert picture description here

4 Select masm --> OK

Insert picture description here

5 Add source file: Open the solution explorer --> click "resource file" --> select "C++ file" --> change the file extension to .asm

Insert picture description here

6 Open the Solution Explorer --> right click on the project name --> select properties (bottom) --> select Microsoft Macro Assembler --> Include Paths --> edit --> add the irvine library directory (as shown below) :

Insert picture description here

7 Open the Solution Explorer --> right-click the project name --> select properties (bottom) --> select "Linker" --> select "General" --> select "Additional Library Directory" --> Edit --> Add the irvine library directory (as shown below):

Insert picture description here

8 Open the Solution Explorer --> right click on the project name --> select properties (bottom) --> select "linker" --> select "input" --> select "additional dependencies" --> Edit --> directly edit and write irvine32.lib:

Insert picture description here

9 Program test

TITLE EXAMPLE
include irvine32.inc

.data
 str1 byte "Hello World!", 0

.code
	main proc
	mov  edx, offset str1
	call  writestring
	call  crlf
	exit
 	main endp	
end main

10 The results are as follows

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43574277/article/details/105990460
Recommended