?? library-4.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20"> <TITLE>cc65 Library Overview: Target specific stuff</TITLE> <LINK HREF="library-5.html" REL=next> <LINK HREF="library-3.html" REL=previous> <LINK HREF="library.html#toc4" REL=contents></HEAD><BODY><A HREF="library-5.html">Next</A><A HREF="library-3.html">Previous</A><A HREF="library.html#toc4">Contents</A><HR><H2><A NAME="s4">4.</A> <A HREF="library.html#toc4">Target specific stuff</A></H2><P>For each supported system there's a header file that contains calls or definesspecific for this system. So, when programming for the C64, include c64.h, forthe C128, include c128.h and so on. To make the task for the Commodore systemseasier, there is also a header file named cbm.h that will define stuff commonfor all CBM systems, and include the header file for the specific targetsystem.</P><P>The header files contain</P><P><UL><LI>Defines for special keys (like function keys)</LI><LI>Defines for special characters (like the graphics characters)</LI><LI>Variables with a fixed address in memory that may be used to accessspecial hardware. For the C64 and C128 there is a variable struct named<CODE>SID</CODE>. Writing to the fields of this struct will write to the SID deviceinstead. Using these variables will make your program more readable and moreportable. Don't fear ineffective code when using these variables, thecompiler will translate reads and writes to these structs into direct memoryaccesses.</LI><LI>Other routines that make only sense for a specific system. One exampleare routines to write memory locations in the system bank for the CBM PET-IIfamily.</LI></UL></P><HR><A HREF="library-5.html">Next</A><A HREF="library-3.html">Previous</A><A HREF="library.html#toc4">Contents</A></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -