Files
hello-world/assembler_nasm_win32.asm
Travor Liu 72e006fdf2 Add NASM Helloworld support for Win32
This is an example using libc, this program can be successfully built in MinGW environment.
2017-12-01 20:03:20 -05:00

11 lines
134 B
NASM

BITS 32
global _main
extern _printf
section .text
push msg
call _printf
add esp,4
ret
section .data
msg: db "Hello world",0Ah,0