I wanted to start learn Assembly but it did not run any way. First I tried with py il with python but it did not work. Now I have a Visual Studio 2022 and I installed the MASM32. The problem is Visual Studio give a A1000 error so it does not find the file, and the second error:
MSB3721 The command "ml.exe /c /nologo /Zi /Fo"Debug\Main.obj" /W3 /errorReport:prompt /TaMain.asm" exited with code 1.TemplateC:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets
So I checked the template file's Property > Linker:
Output file: D:Assembly
Additional Library Directories: C:\Users\User\source\repos\Template\Template
After I checked the Main.asm file's Property > General > Ithem type: Microsoft Macro Assembler
And my code:
INCLUDE Irvine32.inc
.386
.model flat, stdcall
.stack 4049
ExitProcess PROTO, dwExitCode:DWORD
.data
; define your variables here
.code
main PROC
; write your assembly code here
mov eax, 3
mov ebx, 5
add eax, ebx
INVOKE ExitProcess, 0
main ENDP
END main
What could be the problem? Thanks for the answers!