home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / packery / xpk_source / libraries / nuke / xpklibnuke.i < prev    next >
Text File  |  1996-10-19  |  1KB  |  48 lines

  1.     INCLUDE    xpkLibHeader.i
  2.  
  3. ; here the needed vars and strings are initialized. Do not change the format
  4. ; of the IDString, only add some additional info after the second brake
  5. ; An additinal $VER: string isn't needed !!!
  6. ; compile this with an assembler and link it as the first part to your
  7. ; library - other ASM or C stuff should be behind this one.
  8.  
  9. VERSION        EQU    1        ; Version number of your Library
  10. REVISION    EQU    4        ; Revision number of your Library
  11.  
  12. LibName        DC.B    'xpkNUKE.library',0
  13. IDString    DC.B    'xpkNUKE 1.4 (30.08.96)',13,10,0
  14.         CNOP    0,2
  15.  
  16. ; following 2 functions are required : _InitCode, _ExitCode
  17. ; they are call by InitRoutine or by Expunge
  18. ; Init is the only funtion, that is allowed to set a value for an global
  19. ; var
  20. ; the library-pointer is in A5, registers have to be saved!!!
  21. ; a return value not zero says, that the initilisation failed !!!
  22.  
  23. ; dummy functions, mark out them if you want to use your own ones
  24.  
  25. _XpksUnpackFree
  26. _XpksPackReset
  27. _InitCode
  28. _ExitCode    MOVEQ    #0,D0
  29.         RTS
  30.  
  31. ; or set these two if the functions are extern
  32. ;    XREF    _InitCode
  33. ;    XREF    _ExitCode
  34.  
  35. ; ASM-Codes: Use this file as an include with
  36. ;    INCLUDE    xpkLib____.i
  37.  
  38. ; C-Codes: Compile this file with an Assembler and get the Object-File
  39. ;    xpkLib____.o
  40. ; link this object file to your C-Code (as the first one!!!)
  41. ; set the following X-Refs
  42.  
  43.     XREF    _XpksPackerInfo
  44.     XREF    _XpksPackChunk
  45.     XREF    _XpksPackFree
  46.     XREF    _XpksUnpackChunk
  47.  
  48.