New Member
Group: Members
Posts: 1
Member No.: 63844
Joined: 17-November 14
|
Hi Vad,
I'm not sure if you have pasted the correct source code into here, since -to me- it looks like it uses linux syscalls... since board name is winasm, not linasm, i suggest you to search some more for examples.
Regards.
P.s.: heres my example hello world:
.486 .model flat, stdcall option casemap:none
include windows.inc include kernel32.inc includelib kernel32.lib include user32.inc includelib user32.lib
.data cCaption db "Caption",0 cText db "Hello World",0 retval dd ?
.code start: invoke MessageBox, NULL, addr cText, addr cCaption, MB_OK mov retval, eax invoke ExitProcess, 0 end start
--- edit: last invoke of exitprocess used wrong return value, thanks for pointing this bug out to ragdog!
|