- Joined
- Sep 7, 2001
- Location
- CT/Poland
Ok i wanna get more into how windows workes so I'm learning assembly. I know it preety much but now its time to learn how to program with it. I got masm32 and made a little program that i have the source code here:
;
.386
.model flat, stdcall
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib\masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.data
MsgBoxCaption db "This is my first program",0
MsgBoxText db "Asm Rocks",0
.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess,o
end start
Some of the code needs to go one one line, but i cant fit it.
Ok so i go and extract masm32 to my windows folder and then i go to ms dos and type in:
C:\>ml /c /coff /Cp msgbox.asm [and i hit enter]
Then i get a error saying that mams cannot find msgbox.asm
I cant figure out why this will not work?
Thanks for any help
Adam
;
.386
.model flat, stdcall
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib\masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
.data
MsgBoxCaption db "This is my first program",0
MsgBoxText db "Asm Rocks",0
.code
start:
invoke MessageBox, NULL, addr MsgBoxText, addr MsgBoxCaption, MB_OK
invoke ExitProcess,o
end start
Some of the code needs to go one one line, but i cant fit it.
Ok so i go and extract masm32 to my windows folder and then i go to ms dos and type in:
C:\>ml /c /coff /Cp msgbox.asm [and i hit enter]
Then i get a error saying that mams cannot find msgbox.asm
I cant figure out why this will not work?
Thanks for any help
Adam