home *** CD-ROM | disk | FTP | other *** search
- NAME HELLO
-
- _TEXT SEGMENT byte public 'CODE'
-
- ASSUME cs:_TEXT,ds:_DATA
-
- start: ;program entry point
- mov ax,seg msg
- mov ds,ax
- mov dx,offset msg ;DS:DX -> msg
- mov ah,09h
- int 21h ;perform int 21H function 09H
- ;(Output character string)
- mov ax,4C00h
- int 21h ;perform int 21H function 4CH
- ;(Terminate with return code)
- _TEXT ENDS
-
-
- _DATA SEGMENT word public 'DATA'
-
- msg DB 'Hello, world',0Dh,0Ah,'$'
-
- _DATA ENDS
-
-
- _STACK SEGMENT stack 'STACK'
-
- DW 80h dup(?) ;stack depth = 128 words
-
- _STACK ENDS
-
- END start
-