home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 5.ddi / TASMEXMP.ZIP / HELLO1.ASM < prev    next >
Encoding:
Assembly Source File  |  1992-06-10  |  672 b   |  20 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.    .MODEL small
  8.    .STACK 100h
  9.    .DATA
  10. HelloMessage DB 'Hello, world',13,10,'$'
  11.    .CODE
  12.    mov  ax,@data
  13.    mov  ds,ax                  ;set DS to point to the data segment
  14.    mov  ah,9                   ;DOS print string function
  15.    mov  dx,OFFSET HelloMessage ;point to "Hello, world"
  16.    int  21h                    ;display "Hello, world"
  17.    mov  ah,4ch                 ;DOS terminate program function
  18.    int  21h                    ;terminate the program
  19.    END
  20.