23 lines
456 B
NASM
23 lines
456 B
NASM
|
format PE
|
||
|
entry start
|
||
|
|
||
|
include '%FASMINC%\WIN32A.INC'
|
||
|
|
||
|
section '.data' data readable writeable
|
||
|
message db 'Hello, Sailor!!', 0
|
||
|
|
||
|
section '.code' code readable executable
|
||
|
start:
|
||
|
invoke printf, message
|
||
|
invoke ExitProcess, 0
|
||
|
|
||
|
section '.idata' import data readable
|
||
|
library \
|
||
|
msvcrt, 'msvcrt.dll', \
|
||
|
kernel32, 'kernel32.dll'
|
||
|
|
||
|
import msvcrt, \
|
||
|
printf, 'printf'
|
||
|
import kernel32, \
|
||
|
ExitProcess, 'ExitProcess'
|