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

  1. StkSeg  SEGMENT PARA STACK 'STACK'
  2.         DB      200h DUP (?)
  3. StkSeg  ENDS
  4.  
  5. Data    SEGMENT WORD 'DATA'
  6. HelloMessage    DB      'Hello, world',13,10,'$'
  7. Data    ENDS
  8.  
  9. Code    SEGMENT WORD 'CODE'
  10.         ASSUME  CS:Code, DS:Data
  11. ProgramStart:
  12.         mov   ax,Data
  13.         mov   ds,ax                    ;set DS to the Data segment
  14.         mov   dx,OFFSET HelloMessage   ;DS:DX points to the hello message
  15.         mov   ah,9                     ;DOS print string function #
  16.         int   21h                      ;print the hello string
  17.         mov   ah,4ch                   ;DOS terminate program function #
  18.         int   21h                      ;end the program
  19. Code    ENDS
  20.         END   ProgramStart
  21.