-
Notifications
You must be signed in to change notification settings - Fork 4
CPC CPlink Software Libraries
Example programs are provided in different languages for both CPC and Raspberry Pi.
For the CPC the libraries created for the BCPL and C (SDCC/CPCTelera) environments can be used directly in your own programs.
The BCPL library is provided as source and assembled into INLINE statements in BCPL library: fifolib.b
To recreate from source you need to have the z80asm assembler installed.
All assembler source files for the library are provided in the sw/cpc_bcpl/asm folder. Running the Makefile in this folder will assemble all the code creating individual listing files, and then a utility will turn these listings into the required INLINE format for the Arnor compiler.
Including the library in your BCPL requires just one import line at the top of the file, as shown in the fifo.b example:
GET "fifolib.b"
The C library is provided as an assembler source file together with a C header file.