home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
181.img
/
TASM-101.ZIP
/
DSLYSTR.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-10-31
|
708b
|
17 lines
DOSSEG
.MODEL SMALL
.STACK 200h
.DATA
DataString DB 'This text is in the data segment$'
.CODE
ProgramStart:
mov bx,@data
mov ds,bx ;set DS to the .DATA segment
mov dx,OFFSET DataString ;point DX to the offset of DataString
; in the .DATA segment
mov ah,9 ;DOS print string function #
int 21h ;invoke DOS to print string
mov ah,4ch ;DOS terminate program function #
int 21h ;invoke DOS to end program
END ProgramStart