asm_dip/toolchain/fasmw17332/EXAMPLES/WIN64/DLL/MSGDEMO.ASM

27 lines
439 B
NASM
Raw Normal View History

2024-11-24 20:13:28 -08:00
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'