![kueller](/assets/img/avatar_default.png)
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_cc65@4236 504e572c-2e33-0410-9681-be2bf7408885
116 lines
3.4 KiB
HTML
116 lines
3.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20">
|
|
<TITLE>Commodore 128 specific information for cc65: Platform specific header files</TITLE>
|
|
<LINK HREF="c128-5.html" REL=next>
|
|
<LINK HREF="c128-3.html" REL=previous>
|
|
<LINK HREF="c128.html#toc4" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="c128-5.html">Next</A>
|
|
<A HREF="c128-3.html">Previous</A>
|
|
<A HREF="c128.html#toc4">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s4">4.</A> <A HREF="c128.html#toc4">Platform specific header files</A></H2>
|
|
|
|
|
|
<P>Programs containing C128 specific code may use the <CODE>c128.h</CODE> or <CODE>cbm.h</CODE>
|
|
header files. Using the later may be an option when writing code for more than
|
|
one CBM platform, since it includes <CODE>c128.h</CODE> and declares several functions
|
|
common to all CBM platforms.</P>
|
|
|
|
|
|
<H2><A NAME="ss4.1">4.1</A> <A HREF="c128.html#toc4.1">C128 specific functions</A>
|
|
</H2>
|
|
|
|
|
|
<P>The functions listed below are special for the C128. See the
|
|
<A HREF="funcref.html">function reference</A> for declaration and usage.</P>
|
|
<P>
|
|
<UL>
|
|
<LI>toggle_videomode</LI>
|
|
<LI>c64mode</LI>
|
|
<LI>fast</LI>
|
|
<LI>slow</LI>
|
|
</UL>
|
|
</P>
|
|
|
|
|
|
<H2><A NAME="ss4.2">4.2</A> <A HREF="c128.html#toc4.2">CBM specific functions</A>
|
|
</H2>
|
|
|
|
|
|
<P>Some functions are available for all (or at least most) of the Commodore
|
|
machines. See the
|
|
<A HREF="funcref.html">function reference</A> for
|
|
declaration and usage.</P>
|
|
<P>
|
|
<UL>
|
|
<LI>cbm_close</LI>
|
|
<LI>cbm_closedir</LI>
|
|
<LI>cbm_k_setlfs</LI>
|
|
<LI>cbm_k_setnam</LI>
|
|
<LI>cbm_k_load</LI>
|
|
<LI>cbm_k_save</LI>
|
|
<LI>cbm_k_open</LI>
|
|
<LI>cbm_k_close</LI>
|
|
<LI>cbm_k_readst</LI>
|
|
<LI>cbm_k_chkin</LI>
|
|
<LI>cbm_k_ckout</LI>
|
|
<LI>cbm_k_basin</LI>
|
|
<LI>cbm_k_bsout</LI>
|
|
<LI>cbm_k_clrch</LI>
|
|
<LI>cbm_load</LI>
|
|
<LI>cbm_open</LI>
|
|
<LI>cbm_opendir</LI>
|
|
<LI>cbm_read</LI>
|
|
<LI>cbm_readdir</LI>
|
|
<LI>cbm_save</LI>
|
|
<LI>cbm_write</LI>
|
|
<LI>get_tv</LI>
|
|
</UL>
|
|
</P>
|
|
|
|
|
|
<H2><A NAME="ss4.3">4.3</A> <A HREF="c128.html#toc4.3">Hardware access</A>
|
|
</H2>
|
|
|
|
|
|
<P>The following pseudo variables declared in the <CODE>c128.h</CODE> 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.</P>
|
|
<P>
|
|
<DL>
|
|
|
|
<DT><B><CODE>VIC</CODE></B><DD><P>The <CODE>VIC</CODE> structure allows access to the VIC II (the graphics
|
|
controller). See the <CODE>_vic2.h</CODE> header file located in the include
|
|
directory for the declaration of the structure.</P>
|
|
|
|
<DT><B><CODE>SID</CODE></B><DD><P>The <CODE>SID</CODE> structure allows access to the SID (the sound interface
|
|
device). See the <CODE>_sid.h</CODE> header file located in the include directory
|
|
for the declaration of the structure.</P>
|
|
|
|
<DT><B><CODE>VDC</CODE></B><DD><P>The <CODE>VDC</CODE> structure allows access to the VDC (the video display
|
|
controller). See the <CODE>_vdc.h</CODE> header file located in the include
|
|
directory for the declaration of the structure.</P>
|
|
|
|
<DT><B><CODE>CIA1, CIA2</CODE></B><DD><P>Access to the two CIA (complex interface adapter) chips is available via
|
|
the <CODE>CIA1</CODE> and <CODE>CIA2</CODE> variables. The structure behind these variables
|
|
is explained in <CODE>_6526.h</CODE>.</P>
|
|
|
|
<DT><B><CODE>COLOR_RAM</CODE></B><DD><P>A character array that mirrors the color RAM of the C64 at $D800.</P>
|
|
|
|
</DL>
|
|
</P>
|
|
|
|
|
|
|
|
|
|
<HR>
|
|
<A HREF="c128-5.html">Next</A>
|
|
<A HREF="c128-3.html">Previous</A>
|
|
<A HREF="c128.html#toc4">Contents</A>
|
|
</BODY>
|
|
</HTML>
|