Add NASM Helloworld support for Win32

This is an example using libc, this program can be successfully built in MinGW environment.
This commit is contained in:
Travor Liu
2017-12-01 20:03:20 -05:00
committed by GitHub
parent 8a7e32f5f1
commit 72e006fdf2

10
assembler_nasm_win32.asm Normal file
View File

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