;---------------------------------------------------------------------; ; A traditional C program ; ;---------------------------------------------------------------------; .Model Small .Stack 128 ; allocate a 128 byte stack .Data Hello DB "Hello world!$" ; our variable .Code Main: mov ax, dgroup mov ds, ax ; point to the Data Segment lea dx, Hello ; get the address of Hello mov ah, 9 ; call string output service int 21h ; print the string mov ah, 4ch ; call DOS exit service int 21h ; exit to DOS End Main