home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD5.iso / workbench / tools / czesc_1 / assignx / asmbit.a next >
Encoding:
Text File  |  1991-05-11  |  457 b   |  24 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.  
  23.     END
  24.