home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c010 / 1.ddi / FLILIB3.ZIP / FLISRC3.ZIP / COPYBYTE.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-08-29  |  640 b   |  34 lines

  1. ;copybyte.asm - contains i86_bcopy.
  2.  
  3.     dosseg
  4.     .model    large
  5.     .code
  6.  
  7.  
  8. ;i86_bcopy(source,dest,count)
  9. ;Copy count bytes from source to dest.    Actual copy is done a byte at a
  10. ;time.    No allignment restrictions on source,dest.  No parity
  11. ;restrictions on count.  Zero counts will trash memory!
  12.     public _i86_bcopy
  13. _i86_bcopy proc far
  14.     push bp
  15.     mov bp,sp
  16.     push ds
  17.     push si
  18.     push di
  19.  
  20.     cld
  21.     lds    si,[4+bp+2]
  22.     les    di,[8+bp+2]
  23.     mov cx,[12+bp+2]
  24.     rep movsb
  25.  
  26.     pop di
  27.     pop si
  28.     pop ds
  29.     pop bp
  30.     ret
  31. _i86_bcopy endp
  32.  
  33. END
  34.