In Borland C++ or Turbo C you can use following syntax for short number of instrucitons:
asm mov ah,9
asm mov dx, offset msg
asm int 21h
For longer code it is better to use:
asm {
mov ah,9
mov dx, offset msg
int 21h
}
You can also use semicolon to place multiple assembly language instruction in one line:
asm {
push ax; push dx
mov ah,9
mov dx, offset msg
int 21h
pop dx; pop ax
}