home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / EXAMPLES / EG1.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-04-07  |  841 b   |  31 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.  
  13. Message     DB  'Hello World....',10,13,36
  14.  
  15. My_program:                                     ; Start of program
  16.  
  17.  
  18.         mov   edx,Offset Message                ; DS:EDX -> string to print
  19.         mov   ah,9
  20.         int   21h                              
  21.  
  22.         mov   ax,4C00h                          ; Termiate the program
  23.         int   21h
  24.  
  25.  
  26. ;db 100000000 dup (?)
  27.  
  28. ;db 0
  29.  
  30. end  My_program                                 ; define stating address
  31.