home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / elib.lzh / ELIB / LIBLINK.ASM < prev    next >
Encoding:
Assembly Source File  |  1991-08-16  |  473 b   |  26 lines

  1. ;  liblink.asm -- jimm mackraz, oct 28, 1986
  2. ;  application side interface for C-routines calling example library
  3.  
  4.     include 'exec/types.i'
  5.     include 'exec/libraries.i'
  6.  
  7.     LIBINIT
  8.     LIBDEF    _LVOGetDown
  9.     LIBDEF    _LVODouble
  10.  
  11.     ; --- xref from application
  12.     public    _libbase
  13.  
  14.     ; --- xdef for application
  15.     public    _GetDown
  16.     public    _Double
  17.  
  18. _GetDown:
  19.     move.l    _libbase,a6
  20.     jmp        _LVOGetDown(a6)    
  21.  
  22. _Double:
  23.     move.l    4(sp),d0        ; first argument on stack
  24.     move.l    _libbase,a6
  25.     jmp    _LVODouble(a6)
  26.