home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 5 / ctrom5b.zip / ctrom5b / PROGRAM / DIVERSEN / DOS32V3B / EXAMPLES / EG1.ASM < prev    next >
Assembly Source File  |  1995-02-12  |  843b  |  27 lines

  1. ;***************************************************************************
  2. ; EG1.ASM          The calssic program that prints 'Hello World'    
  3. ;             
  4. ;
  5. ;***************************************************************************
  6.  
  7. .386
  8. .model flat                                     
  9. .stack 1000h                                    
  10. .code                                           
  11.  
  12. Message     DB  'Hello World....',10,13,36
  13.  
  14. My_program:                                     ; Start of program
  15.  
  16.  
  17.         mov   edx,Offset Message                ; DS:EDX -> string to print
  18.         mov   ah,9
  19.         int   21h                              
  20.  
  21.         mov   ax,4C00h                          ; Termiate the program
  22.         int   21h
  23.  
  24.  
  25.  
  26. end  My_program                                 ; define stating address
  27.