home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 387b.lha / dice_v2.02 / lib / memory / memcpy.a < prev    next >
Encoding:
Text File  |  1990-05-30  |  388 b   |  24 lines

  1.  
  2.             ;    MEMCPY.A
  3.             ;
  4.             ;    (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  5.             ;
  6.             ;    memcpy(d, s, bytes) -> movmem(s, d, bytes)
  7.  
  8.             xdef    _memcpy
  9.             xdef    _memmove
  10.             xref    _movmem
  11.  
  12.             section text,code
  13.  
  14. _memcpy:
  15. _memmove:
  16.             lea     4(sp),A0
  17.             movem.l (A0),D0/D1
  18.             exg     D0,D1
  19.             movem.l D0/D1,(A0)
  20.             jmp     _movmem
  21.  
  22.             END
  23.  
  24.