?? c16-4.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>Commodore 16/116 specific information for cc65: Platform specific header files</TITLE> <LINK HREF="c16-5.html" REL=next> <LINK HREF="c16-3.html" REL=previous> <LINK HREF="c16.html#toc4" REL=contents></HEAD><BODY><A HREF="c16-5.html">Next</A><A HREF="c16-3.html">Previous</A><A HREF="c16.html#toc4">Contents</A><HR><H2><A NAME="s4">4.</A> <A HREF="c16.html#toc4">Platform specific header files</A></H2><P>Programs containing C16 specific code may use the <CODE>c16.h</CODE> or <CODE>cbm.h</CODE>header files. Using the later may be an option when writing code for more thanone CBM platform, since it includes <CODE>c16.h</CODE> and declares several functionscommon to all CBM platforms.</P><P>Please note that most of the header file declarations from the <CODE>c16.h</CODE>header file are shared between the C16 and Plus/4 configurations. For thisreason, most of it is located in a common header file named <CODE>cbm264.h</CODE>.</P><H2><A NAME="ss4.1">4.1</A> <A HREF="c16.html#toc4.1">C16/C116 specific functions</A></H2><P>There are currently no special C16/C116 functions.</P><H2><A NAME="ss4.2">4.2</A> <A HREF="c16.html#toc4.2">CBM specific functions</A></H2><P>Some functions are available for all (or at least most) of the Commodoremachines. See the <A HREF="funcref.html">function reference</A> fordeclaration 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="c16.html#toc4.3">Hardware access</A></H2><P>The following pseudo variables declared in the <CODE>c16.h</CODE> header file doallow access to hardware located in the address space. Some variables arestructures, accessing the struct fields will access the chip registers.</P><P><DL><DT><B><CODE>TED</CODE></B><DD><P>The <CODE>TED</CODE> structure allows access to the TED chip. See the<CODE>_ted.h</CODE> header file located in the include directory for thedeclaration of the structure.</P><DT><B><CODE>COLOR_RAM</CODE></B><DD><P>A character array that mirrors the color RAM of the C16 at $0800.</P></DL></P><HR><A HREF="c16-5.html">Next</A><A HREF="c16-3.html">Previous</A><A HREF="c16.html#toc4">Contents</A></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -