/* hello8.c, Borland, MARS inline assembler program to print "Hello, world" To compile in MARS: sc hello8.c To compile in Borland (requires TASM): bcc32 hello8.c To compile in Borland without TASM using MASM bcc32 -S hello8.c edit hello8.asm (remove ?debug and endm, change model to .model) ml /Cx /c hello8.asm bcc32 hello8.obj */ #include char greeting[] = "Hello, world\n"; int main() { asm { push offset greeting call printf add esp, 4 } return 0; }