Merge pull request #439 from TravorLZH/master
Adding NASM Helloworld for Windows
This commit is contained in:
10
a/assembler_nasm_win32.asm
Normal file
10
a/assembler_nasm_win32.asm
Normal 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
|
||||||
Reference in New Issue
Block a user