Add Nasm-win64 Fasm-win32 (#1416)
This commit is contained in:
26
a/Assembler FASM Win32.asm
Normal file
26
a/Assembler FASM Win32.asm
Normal 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'
|
||||
Reference in New Issue
Block a user