home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
packery
/
xpk_develop
/
include
/
asm
/
xpklib.i
next >
Wrap
Text File
|
1996-10-19
|
1KB
|
48 lines
INCLUDE xpkLibHeader.i
; here the needed vars and strings are initialized. Do not change the format
; of the IDString, only add some additional info after the second brake
; An additinal $VER: string isn't needed !!!
; compile this with an assembler and link it as the first part to your
; library - other ASM or C stuff should be behind this one.
VERSION EQU 1 ; Version number of your Library
REVISION EQU 0 ; Revision number of your Library
LibName DC.B 'xpk____.library',0
IDString DC.B 'xpk____ 1.0 (06.08.96)',13,10,0
CNOP 0,2
; following 2 functions are required : _InitCode, _ExitCode
; they are call by InitRoutine or by Expunge
; Init is the only funtion, that is allowed to set a value for an global
; var
; the library-pointer is in A5, registers have to be saved!!!
; a return value not zero says, that the initilisation failed !!!
; dummy functions, mark out them if you want to use your own ones
_InitCode
_ExitCode MOVEQ #0,D0
RTS
; or set these two if the functions are extern
; XREF _InitCode
; XREF _ExitCode
; ASM-Codes: Use this file as an include with
; INCLUDE xpkLib____.i
; C-Codes: Compile this file with an Assembler and get the Object-File
; xpkLib____.o
; link this object file to your C-Code (as the first one!!!)
; set the following X-Refs
; XREF _XpksPackerInfo
; XREF _XpksPackChunk
; XREF _XpksPackFree
; XREF _XpksPackReset
; XREF _XpksUnpackChunk
; XREF _XpksUnpackFree