Could someone please tell me how to compile an assembly program.
I have the code, but I can't compile it.
Also, my "Hello, world!" program does not run when using Flat Assemble, a compiler I got off the internet.
Here is my code:
.386
.model flat, stdcall
option casemap :none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\masm32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\masm32.lib
.data
HelloWorld db "Hello World!", 0
.code
start:
invoke StdOut, addr HelloWorld
invoke ExitProcess, 0
end start
;the reason I put [] on either side of my code is to show it is code
It is meant to make a message box appear to display "Hello World!", and the program is called Hello.asm and when I compile it it says that Hello.asm is an error in the code. It doesn't make sense.
Please help me,
Rileyh