а почему с консолью балуетесь? с ГУИ же проще. А то с консолью все через Ж..., вернее через msvcrt.dll, хотя я разницы не вижу Ж... или msvcrt.dll. любите вы консольщики городить.
format PE GUI 4.0
entry Start
include 'win32a.inc'
section '.data' data readable
str1 db 'HelloWorld',0
section '.code' code readable executable
proc messageBoxWrapper stri1
call [MessageBox],0,0,[stri1],MB_OK
ret
endp
Start:
stdcall messageBoxWrapper, str1
retn
section '.idata' import data readable
library user32,'user32.dll'
import user32, MessageBox, 'MessageBox'