I installed SimpleASM and MASM32 to learn assembly. I am now reading a book and try the code written in it.
; AddTwo.asm - adds two 32-bit integers
; Chapter 3 example
.386
.model flat,stdcall
.stack 4096
ExitProcess PROTO, dwExitCode: DWORD
.code
main PROC
mov eax, 5 ; move 5 to the eax register
add eax,6 ; add 6 to the eax register
INVOKE ExitProcess,0
main ENDP
END main
but when i try to build the code, this is it what the console says
[17:56:02] Warning! Errors have occurred in the build:
program.o : error LNK2001: unresolved external symbol _ExitProcess@4
C:\Users\De\AppData\Local\Temp\SASM\SASMprog.exe : fatal error LNK1120: 1 unresolved externals
edit:
while i extract the masm32. in the cmd part it says
"inc2l.exe - Ordinal Not Found"
"The ordinal 203 could not be located in the dynamic link library
WINSPOOL.DRV."
i just ignore it.. and it keeps showing.. i just pressing enter until the assembly is installed