INCLUDELIB MSCVCRT.LIB

EXTERN __imp_printf:PROC
EXTERN __imp_exit:PROC

PUBLIC start

_TEXT SEGMENT ALIGN(8) EXECUTE READ ALIAS('.text') 'CODE'

format DB 'hello, world!', 13, 10, 0

start:
    LEA     RCX, [format]            ; format = "hello, world!\n"
    CALL    QWORD PTR [__imp_printf] ; printf("hello, world!\n")
    XOR     ECX, ECX                 ; status = 0
    CALL    QWORD PTR [__imp_exit]   ; exit(0)

_TEXT ENDS

END