home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 181.img / TASM-101.ZIP / CHAPXMPL.ARC / MAIN.ASM < prev    next >
Assembly Source File  |  1989-05-02  |  699b  |  27 lines

  1.      DOSSEG
  2.      .MODEL    SMALL
  3.      .STACK    200H
  4.      .DATA
  5. String1        DB   'Hello, ',0
  6. String2        DB   'world',0dh,0ah,'$',0
  7.      GLOBAL    FinalString:BYTE
  8. FinalString    DB   50 DUP (?)
  9.      .CODE
  10.      EXTRN     ConcatenateStrings:PROC
  11. ProgramStart:
  12.      mov  ax,@data
  13.      mov  ds,ax
  14.      mov  ax,OFFSET String1
  15.      mov  bx,OFFSET String2
  16.      call ConcatenateStrings       ;combine the two strings
  17.                                    ; into a single string
  18.      mov  ah,9
  19.      mov  dx,OFFSET FinalString
  20.      int  21h                      ;print the resulting string
  21.      mov  ah,4ch
  22.      int  21h                      ;and done
  23.      END  ProgramStart
  24.  
  25.  
  26.  
  27.