home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
packery
/
xpk_source
/
aboutsources
next >
Wrap
Text File
|
1996-10-19
|
3KB
|
67 lines
A small guide to the sources
You should begin your tour to these sources in the examples directory, which
contains some simple examples of how to write applications using xpk.
The directory Shell contains the sources of what I think are the basic shell
utilities for xpk.
If you want to write a sublibrary in C, the best place to start with are
the sources of xpkRLEN.library or xpkENCO.library.
Assembler programmers should take a look at the sources of xpkFAST.library.
I tried to separate the .library bureaucrazy from the other stuff and
generally tried to write elegant and readable code while writing FAST.
People with a hang to monolitic assembler sources or a distaste for linkers
will be pleased by what they'll find in the directory with the sources of
xpkIDEA.library.
xpkmaster contains the cleanedup sources of the xpkmaster.library, but still
is a mess. Do not try to understand the inner workings of xpkmaster.library
without first having read all the documentation.
For those, who want to write their own sublibrary:
--------------------------------------------------
How has the version string to look?
--> see how the standard or the example libraries handle this:
xpk<name of library> <version>.<revision> (<date>) <comments>\r\n\0
example: "xpkFAST 1.7 (07.09.96)\r\n\0"
(NOTE: \r = 0x13; \n = 0x10)
You do not need to add a "$VER: " somewhere in the text and the library
name should be without ".library"! Also the date-format should be the above
form, because Commodore defined this form as an nearly standard. Please
make the work and include an correct library header, because this makes
updating a lot easier! This means also a correct initialisation of the
corresponding fields in the Resident (RomTag) structure. An example library
header handling this you find in the xpk_Develop archive in the ASM-include
directory. (If you have problems in doing this, contact me! - Dirk Stöcker)
How to compile the libraries with SAS-C:
----------------------------------------
Note: If Sas-C's assembler reports some errors in the asm-files take an
other assembler.
xpkmaster.library:
run an assembler with libdata.a and get the object-file libdata.o
run sc without options in the directory of the library
copy the library to LIBS:
other libraries:
run the assembler over the needed asm-file to get either the library or
an object file for the C-Compiler
if there is a SCOPTIONS file:
run sc without options in the directory of the library
copy the library to LIBS:
How to compile the libraries with Maxon C++ V3:
use the makefile with Maxon's Make.
Dirk and Christian.