From 72e006fdf240d69a2f5af14dd7a6dd4391450e8b Mon Sep 17 00:00:00 2001 From: Travor Liu <1784153752@qq.com> Date: Fri, 1 Dec 2017 20:03:20 -0500 Subject: [PATCH] Add NASM Helloworld support for Win32 This is an example using libc, this program can be successfully built in MinGW environment. --- assembler_nasm_win32.asm | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 assembler_nasm_win32.asm diff --git a/assembler_nasm_win32.asm b/assembler_nasm_win32.asm new file mode 100644 index 00000000..3ded350b --- /dev/null +++ b/assembler_nasm_win32.asm @@ -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