home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c081_11 / 9.ddi / CHAPXMPL.ZIP / HELLO.ASM < prev    next >
Encoding:
Assembly Source File  |  1991-02-13  |  713 b   |  21 lines

  1. ; Turbo Assembler    Copyright (c) 1988, 1991 By Borland International, Inc.
  2.  
  3. ; HELLO.ASM - Display the message "Hello World"
  4.  
  5. ; From the Turbo Assembler Users Guide - Getting started
  6.  
  7.    DOSSEG
  8.    .MODEL SMALL
  9.    .STACK 100h
  10.    .DATA
  11. HelloMessage DB 'Hello, world',13,10,'$'
  12.    .CODE
  13.    mov  ax,@data
  14.    mov  ds,ax                       ;set DS to point to the data segment
  15.    mov  ah,9                        ;DOS print string function
  16.    mov  dx,OFFSET HelloMessage      ;point to "Hello, world"
  17.    int  21h                         ;display "Hello, world"
  18.    mov  ah,4ch                      ;DOS terminate program function
  19.    int  21h                         ;terminate the program
  20.    END
  21.