]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/pecoff/Inputs/hello.asm
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / pecoff / Inputs / hello.asm
1 ;;; ml hello.asm /link /subsystem:windows /defaultlib:kernel32.lib \
2 ;;;    /defaultlib:user32.lib /out:hello.exe /entry:main
3
4 .386
5 .model flat, c
6
7 extern MessageBoxA@16 : PROC
8 extern ExitProcess@4 : PROC
9
10 .data
11         caption db "Hello", 0
12         message db "Hello World", 0
13
14 .code
15 main:
16         mov eax, 0
17         push eax
18         push offset caption
19         push offset message
20         push eax
21         call MessageBoxA@16
22         push eax
23         call ExitProcess@4
24 end main