;yasm -f win64 demo.asm
;link demo.obj /defaultlib:user32.lib /defaultlib:kernel32.lib /largeaddressaware:no /entry:main /subsystem:windows /out:demo64_yasm.exe

bits 64

extern MessageBoxA:proc
extern ExitProcess:proc

msg_title db "Demo!", 0
msg_content db "Hello World!", 0

global main

main:
        push    rax
        xor     r9, r9
        mov     r8, msg_title
        mov     rdx, msg_content 
        xor     ecx, ecx
        call    MessageBoxA
        xor     ecx, ecx
        call    ExitProcess
		
