home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pctchnqs
/
1990
/
number3
/
main.asm
< prev
next >
Wrap
Assembly Source File
|
1990-05-31
|
584b
|
25 lines
; Program MAIN.ASM
; Sample .COM program format in MASM 5.1 using
; simplified segment directives
; *** Do NOT use DOSSEG directive ***
.MODEL small ; *** Use small model ***
DGROUP GROUP _TEXT ; *** Add _TEXT to DGROUP ***
; *** Do NOT use .STACK directive ***
.DATA
msg db "Hello, World!", 13, 10, '$'
.CODE
ORG 0100H ; *** Set origin to 0100H ***
main:
mov dx, offset msg ; Display message
mov ah, 09h
int 21h
mov ax, 4C00h ; Exit for DOS 2.0 and above
int 21h
END main