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

  1.    DOSSEG
  2.    .MODEL SMALL
  3.    .STACK 100h
  4.    .DATA
  5. HelloMessage DB 'Hello, world',13,10,'$'
  6.    .CODE
  7.    mov  ax,@data
  8.    mov  ds,ax                       ;set DS to point to the data segment
  9.    mov  ah,9                        ;DOS print string function
  10.    mov  dx,OFFSET HelloMessage      ;point to "Hello, world"
  11.    int  21h                         ;display "Hello, world"
  12.    mov  ah,4ch                      ;DOS terminate program function
  13.    int  21h                         ;terminate the program
  14.    END
  15.