Programs containing CBM 510 specific code may use the cbm510.h or
cbm.h header files. Using the later may be an option when writing code
for more than one CBM platform, since it includes cbm510.h and declares
several functions common to all CBM platforms.
The functions listed below are special for the CBM 510. See the function reference for declaration and usage.
Some functions are available for all (or at least most) of the Commodore machines. See the function reference for declaration and usage.
The following pseudo variables declared in the cbm510.h header file do
allow access to hardware located in the address space. Some variables are
structures, accessing the struct fields will access the chip registers.
Note: All I/O chips are located in the system bank (bank 15) and can
therefore not be accessed like on other platforms. Please use one of the
peekbsys, peekwsys, pokebsys and pokewsys functions to
access the I/O chips. Direct reads and writes to the structures named below
will not work!
VICThe VIC structure allows access to the VIC II (the graphics
controller). See the _vic2.h header file located in the include
directory for the declaration of the structure.
SIDThe SID structure allows access to the SID (the sound interface
device). See the _sid.h header file located in the include directory
for the declaration of the structure.
ACIAAccess to the ACIA (the RS232 chip) is available via the ACIA variable.
See the _6551.h header file located in the include directory for the
declaration of the structure.
CIAAccess to the CIA chip is available via the CIA variable. See the
_6526.h header file located in the include directory for the
declaration of the structure.
TPI1, TPI2The two 6525 triport chips may be accessed by using this variable. See the
_6525.h header file located in the include directory for the
declaration of the structure.