Systems:
--------
-Supported systems at this time are: C64, C128, Plus/4, CBM 600/700, the newer
+Supported systems at this time are: C64, C128, Plus/4, CBM 600/700, the newer
PET machines (not 2001), and the Apple ][ (thanks to Kevin Ruland, who did the
port).
APPLE2: The program starts at $800, and of RAM is $8E00, so 33.5K of memory
(including stack) are available.
+
Note: The above numbers do not mean that the remaining memory is unusable.
However, it is not linear memory and must be accessed by other, nonportable
methods. I'm thinking about a library extension that allows access to the
Note: The \t in the string is replaced by the tab character, as in all other
strings.
+Beware: Be careful when inserting inline code since this may collide with
+the work of the optimizer.
+
Pseudo variables:
This feature is useful with inline assembly and macros. For example, a macro
that reads a CRTC register may be written like this:
-#define wr(idx) (__AX__=(idx),asm("\tsta\t$2000\n\tlda\t$2000\n\tldx\t#$00"),__AX__)
-
-An obvious problem here is that macro definitions may not use more than one
-line.
-
-
+#define wr(idx) (__AX__=(idx), \
+ asm("\tsta\t$2000\n\tlda\t$2000\n\tldx\t#$00"), \
+ __AX__)
_text: .asciiz "Hello world!"
+(The example is rather stupid, since the text in text.s does not use the
+correct character set for the target machine - conversion is usually done
+by the compiler. However, we will ignore that here.)
+
We assume that the target file should be named "hello", and the target
system is the C64.
-
+
5. Direct console I/O - conio.h
--------------------------------
+-------------------------------
The conio header file contains a large set of functions that do screen and
keyboard I/O. The functions will write directly to the screen or poll the
cbm610 (that is, the complete 600/700 series)
pet (all PETs except the 2001)
apple 2
+ atari
The conio.h header file does also include the system specific header files
which define constants for special characters and keys.
Documentation overview:
- ar65.txt - Describes the ar65 archiver.
+ BUGS - Known compiler bugs
- debugging.txt - Debug programs using the VICE emulator.
+ CREDITS - Who helped with the compiler and tools?
+
+ ar65.txt - Describes the ar65 archiver.
ca65.txt - Describes the ca65 macro assembler.
coding.txt - Containes hints on creating the most effective code
with cc65.
+ compile.txt - How to compile cc65 and the support tools.
+
+ debugging.txt - Debug programs using the VICE emulator.
+
+ internal.doc - A somewhat older text describing several cc65 internals.
+
intro.txt - Describes the use of the tools by a short "hello world"
example.