home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Atlanta_1990 / Atlanta-Devcon.1 / Libraries / Intuition / boopsi / hookface.asm < prev    next >
Encoding:
Assembly Source File  |  1992-08-26  |  310 b   |  22 lines

  1.  
  2. *  $Id: $
  3.  
  4.     INCLUDE 'exec/types.i'
  5.     INCLUDE 'utility/hooks.i'
  6.  
  7.     xdef    _hookEntry
  8.     xdef    _stubReturn
  9.  
  10.  
  11. * entry interface for C code (large-code, stack parameters)
  12. _hookEntry:
  13.     move.l    a1,-(sp)
  14.     move.l    a2,-(sp)
  15.     move.l    a0,-(sp)
  16.     move.l    h_SubEntry(a0),a0    ; C entry point
  17.     jsr    (a0)
  18.     lea    12(sp),sp
  19. _stubReturn:
  20.     rts
  21.  
  22.