;===============================================
;
; .COM Sample
;
; Compile with:
; masm test.asm
; link test.obj
; exe2bin test.exe test.com
;
;===============================================
model small
386
code
org 100h
start: jmp MAIN_PROGRAM
TestMsg db 'small.com$'
;----------------------
; Your Data Here
;----------------------
;----------------------
MAIN_PROGRAM:
;---------------
; Your Code Here
;---------------
mov dx, offset TestMsg ; tell DOS where string is
mov ah, 09h ; DOS command 9 = print string
int 21h ; tell DOS to issue command
;---------------
mov al, 0h ; return code (0 = no error)
EXIT_PROGRAM:
mov ah,4ch ; quit to DOS
int 21h
end start