asm_dip/toolchain/fasmw17332/EXAMPLES/MSCOFF/MSCOFF.ASM

24 lines
351 B
NASM
Raw Normal View History

2024-11-24 20:13:28 -08:00
; example of making Win32 COFF object file
format MS COFF
extrn '__imp__MessageBoxA@16' as MessageBox:dword
section '.text' code readable executable
public _demo
_demo:
push 0
push _caption
push _message
push 0
call [MessageBox]
ret
section '.data' data readable writeable
_caption db 'Win32 assembly',0
_message db 'Coffee time!',0