; hello4.asm - Print "Hello, world" using Borland C library ; To asemble/link using MASM 6.15 and Borland C 5.5 ; ; ml /Cx /c hello4.asm ; bcc32 hello4.obj ; ; To link to MINGW gcc 3.4.1 ; ; ml /Cx /c /coff hello4.asm ; gcc hello4.obj -o hello4.exe ; strip hello4.exe .386 .model flat extern C printf: proc public _main .code greeting byte "Hello, world", 10, 0 _main: pushd offset greeting call printf add esp, 4 ret end