home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / MAXONC3_6OF8.DMS / in.adf / LIBSRC.LHA / LIBSRC / mem_set.asm < prev    next >
Encoding:
Assembly Source File  |  1994-04-15  |  266 b   |  21 lines

  1.  
  2. *    Maxon C++ Library:
  3. *    Modul "mem_set"
  4. *    Jens Gelhar 11.09.91, 15.04.94
  5.  
  6.     xdef    _memset,memset__PviUi
  7.  
  8. _memset:
  9. memset__PviUi:
  10.     move.l    4(a7),a0
  11.     movem.l    8(a7),d0/d1
  12.     tst.l    d1
  13.     beq.b    done
  14. loop    move.b    d0,(a0)+
  15.     subq.l    #1,d1
  16.     bne.b    loop
  17. done    move.l    4(a7),d0
  18.     rts
  19.  
  20.     end
  21.