home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l350 / 3.ddi / EXAMPLES / ASM / HELLO.ASM < prev    next >
Encoding:
Assembly Source File  |  1988-05-29  |  1.2 KB  |  49 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 for 386 protected mode
  12. ;
  13. ; This program is the [in]famous "Hello world" program.  It illustrates
  14. ; making MS-DOS system calls from 386 protected mode.
  15. ;
  16.  
  17.     assume    cs:_text,ds:_data
  18.  
  19. _text    segment    para public use32 'code'
  20.  
  21.     public    _start_
  22.  
  23. _start_    proc    near
  24.  
  25.     mov    ah,09h            ; Output the message.
  26.     mov    edx,offset hellomsg    ;
  27.     int    21h            ;
  28.  
  29.     mov    ax,4C00h        ; exit to DOS
  30.     int    21h
  31.  
  32. _start_    endp
  33.  
  34. _text    ends
  35.  
  36. _data    segment    para public use32 'data'
  37.  
  38. hellomsg db    'Hello world!!!!!!!!',0DH,0AH,'$'
  39.     
  40. _data    ends
  41.  
  42. _stack    segment byte stack use32 'stack'
  43.  
  44.     db    8192 dup (?)
  45.  
  46. _stack    ends
  47.  
  48.     end _start_
  49.