Add Nasm-win64 Fasm-win32 (#1416)

This commit is contained in:
never
2024-01-05 07:58:33 +05:30
parent d32f01364b
commit 08771794d2
3 changed files with 149 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
format PE CONSOLE
entry start
include 'win32a.inc'
section '.data' data readable writable
helo db "Hello World", 0
section '.text' code readable executable
start: xor ecx, ecx
push helo
call [printf]
add esp, 4
push ecx
call [ExitProcess]
section '.idata' import data readable
library kernel , 'kernel32.dll',\
msvcrt , 'msvcrt.dll '
import kernel,\
ExitProcess, 'ExitProcess'
import msvcrt,\
printf, 'printf'