home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l224 / 2.img / CHAPXMPL.ZIP / HELLO.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-10-29  |  523 b   |  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.