home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / packery / xpk_source / libraries / duke / xpklibduke.i < prev   
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    'xpkDUKE.library',0
  13. IDString    DC.B    'xpkDUKE 1.4 (09.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. _InitCode
  26. _ExitCode    MOVEQ    #0,D0
  27.         RTS
  28.  
  29. ; or set these two if the functions are extern
  30. ;    XREF    _InitCode
  31. ;    XREF    _ExitCode
  32.  
  33. ; ASM-Codes: Use this file as an include with
  34. ;    INCLUDE    xpkLib____.i
  35.  
  36. ; C-Codes: Compile this file with an Assembler and get the Object-File
  37. ;    xpkLib____.o
  38. ; link this object file to your C-Code (as the first one!!!)
  39. ; set the following X-Refs
  40.  
  41.     XREF    _XpksPackerInfo
  42.     XREF    _XpksPackChunk
  43.     XREF    _XpksPackFree
  44.     XREF    _XpksPackReset
  45.     XREF    _XpksUnpackChunk
  46.     XREF    _XpksUnpackFree
  47.  
  48.