N
N
Nikita Kargin2021-06-11 19:15:01
assembler
Nikita Kargin, 2021-06-11 19:15:01

Where to get external files in masm?

I have Visual Studio 2015. There I have created a project. In this project, I created an empty source file with the .asm extension. Then I checked masm in Build Dependencies and set Microsoft Macro Assembler to my .asm file in properties in the Item Type field.
Then I found a simple program on the Internet that, in theory, adds 2 numbers:

.386
.model flat
.data
.code
start:
mov eax,3
add eax,2
ret
end start

She gathers and the console immediately closes. I think that's how it should be.
Then I wanted to display something on the screen. In all the examples found, either something like this is used:
include \masm32\include\windows.inc
Or something like this:
extrn ExitProcess:PROC
But both there and there the studio gives me an error, they say, there are no such files and functions. Everywhere they write as if it goes without saying, but I did not find any files with the .inc extension on my computer at all.
I would be grateful if you could help me write a simple program that outputs Hello World to the console in Visual Studio

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfemidi, 2021-06-11
@pfemidi

For example from here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question