;--- 16-bit mixed-language sample.
;--- Main program is assembly, and CRT functions can be used.
;--- 1. Using MSVC v1.52
;---   assemble: jwasm Mixed2.asm
;---   link:     \msvc\bin\link Mixed2.obj,,,\msvc\lib\slibce;
;--- 2. Using Digital Mars C++
;---   assemble: jwasm Mixed2.asm
;---   link:     \dm\bin\link Mixed2.obj,,,\dm\lib\sds;
;--- 
;--- Note concerning Open Watcom: OW uses the WATCOM_C calling convention,
;--- which isn't supported by the INVOKE directive yet.

    .model small

printf proto c :WORD, :VARARG

    .data

szHello db 10,"Hello, world!",10,0

    .code

main proc c argc:word, argv:ptr

    invoke printf, addr szHello
    ret
main endp

    end