home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 181.img / TASM-101.ZIP / CHAPXMPL.ARC / DSLYSTR.ASM < prev    next >
Assembly Source File  |  1989-05-02  |  708b  |  17 lines

  1.         DOSSEG
  2.         .MODEL  SMALL
  3.         .STACK  200h
  4.         .DATA
  5. DataString      DB  'This text is in the data segment$'
  6.         .CODE
  7. ProgramStart:
  8.         mov     bx,@data
  9.         mov     ds,bx                  ;set DS to the .DATA segment
  10.         mov     dx,OFFSET DataString   ;point DX to the offset of DataString
  11.                                        ; in the .DATA segment
  12.         mov     ah,9                   ;DOS print string function #
  13.         int     21h                    ;invoke DOS to print string
  14.         mov     ah,4ch                 ;DOS terminate program function #
  15.         int     21h                    ;invoke DOS to end program
  16.         END     ProgramStart
  17.