home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l350 / 3.ddi / EXAMPLES / LOADER / FARHELLO.ASM next >
Encoding:
Assembly Source File  |  1990-07-31  |  1.1 KB  |  45 lines

  1. ;************************************************************************/
  2. ;*    Copyright (C) 1986-1988 Phar Lap Software, Inc.            */
  3. ;*    Unpublished - rights reserved under the Copyright Laws of the    */
  4. ;*    United States.  Use, duplication, or disclosure by the         */
  5. ;*    Government is subject to restrictions as set forth in         */
  6. ;*    subparagraph (c)(1)(ii) of the Rights in Technical Data and     */
  7. ;*    Computer Software clause at 252.227-7013.            */
  8. ;*    Phar Lap Software, Inc., 60 Aberdeen Ave., Cambridge, MA 02138    */
  9. ;************************************************************************/
  10. ;
  11. ; HELLO.ASM - Hello world program that does FAR return to exit.
  12. ;
  13.  
  14.     assume    cs:_text,ds:_data
  15.  
  16. _text    segment    para public use32 'code'
  17.  
  18.     public    _start_
  19.  
  20. _start_    proc    far
  21.  
  22.     mov    ah,09h            ; Output the message.
  23.     mov    edx,offset hellomsg    ;
  24.     int    21h            ;
  25.  
  26.     ret                ; return to caller
  27.  
  28. _start_    endp
  29.  
  30. _text    ends
  31.  
  32. _data    segment    para public use32 'data'
  33.  
  34. hellomsg db    'Hello world!!!!!!!!',0DH,0AH,'$'
  35.     
  36. _data    ends
  37.  
  38. _stack    segment byte stack use32 'stack'
  39.  
  40.     db    8192 dup (?)
  41.  
  42. _stack    ends
  43.  
  44.     end _start_
  45.