asm_dip/toolchain/fasmw17332/EXAMPLES/WIN64/DLL/MSGDEMO.ASM
2024-11-24 23:13:28 -05:00

27 lines
439 B
NASM

format PE64 console
entry start
include 'win64a.inc'
section '.text' code readable executable
start:
sub rsp,8
invoke WriteMessage,message
invoke ExitProcess,0
section '.data' data readable
message db "Hi! I'm the example program!",0
section '.idata' import data readable writeable
library kernel32,'KERNEL32.DLL',\
writemsg,'WRITEMSG.DLL'
include 'api/kernel32.inc'
import writemsg,\
WriteMessage,'WriteMessage'