home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
123.img
/
TASM.ZIP
/
STDSEG.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-10-31
|
728b
|
21 lines
StkSeg SEGMENT PARA STACK 'STACK'
DB 200h DUP (?)
StkSeg ENDS
Data SEGMENT WORD 'DATA'
HelloMessage DB 'Hello, world',13,10,'$'
Data ENDS
Code SEGMENT WORD 'CODE'
ASSUME CS:Code, DS:Data
ProgramStart:
mov ax,Data
mov ds,ax ;set DS to the Data segment
mov dx,OFFSET HelloMessage ;DS:DX points to the hello message
mov ah,9 ;DOS print string function #
int 21h ;print the hello string
mov ah,4ch ;DOS terminate program function #
int 21h ;end the program
Code ENDS
END ProgramStart