home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newc_dev / assignx.lha / AsmBit.a next >
Text File  |  1991-04-17  |  452b  |  22 lines

  1. *****************************************************************************
  2. *
  3. *    Asm bit for AssignX
  4. *
  5. *    (it was easier to write in ASM than to figure out how to get 
  6. *    the compiler not to complain about the code)
  7. *
  8. *****************************************************************************
  9.  
  10.     xdef    _MyFunc
  11.     xref    _OrigFunc
  12.  
  13.     section code,code
  14.  
  15. _MyFunc        move.l    a4,-(a7)
  16.         movem.l    8(a7),a0-a3
  17.         move.l    _OrigFunc,a4
  18.         jsr    (a4)
  19.         move.l    (a7)+,a4
  20.         rts
  21.  
  22.