+
+This file contains an overview of the C128 runtime system as it comes with the
+cc65 C compiler. It describes the memory layout, C128 specific header files,
+available drivers, and any pitfalls specific to that platform.
+
+Please note that C128 specific functions are just mentioned here, they are
+described in detail in the separate
+
+The standard binary output format generated by the linker for the C128 target
+is a machine language program with a one line BASIC stub. This means that a
+program can be loaded as BASIC program and started with RUN. It is of course
+possible to change this behaviour by using a modified startup file and linker
+config.
+
+
+
+
+cc65 generated programs with the default setup run with the I/O area and the
+kernal ROM enabled. Note that this is a non standard memory layout, and that
+there is no "memory configuration index" for this layout. This means that
+special case has to be taken when changing the configuration, or calling any
+code that does this. The memory configuration register at $FF00 should
+be saved and restored instead of relying on the memory configuration index
+stored in the zero page.
+
+The setup gives a usable memory range of $1C00 - $CFFF. Having
+just the kernal ROM mapped in means, that kernal entry points may be called
+directly, but using the BASIC ROM is not possible without additional code.
+
+Special locations:
+
+
+
+
+
+
+
+Programs containing C128 specific code may use the C128 specific functions
+
+The functions listed below are special for the C128. See the
+
+Some functions are available for all (or at least most) of the Commodore
+machines. See the
+
+The following pseudo variables declared in the
+
+
+
+
+
+
+
+
+
+Note: The graphics drivers for the VDC are incompatible with the extended
+memory drivers using the VDC memory!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Currently no drivers available (in fact, the API for loadable mouse drivers
+does not exist).
+
+
+
+
+
+
+
+
+
+
+
+
+Command line argument passing is currently not supported for the C128.
+
+
+
+
+The runtime for the C128 uses routines marked as .
+
+
+
+
+
+If you have problems using the library, if you find any bugs, or if you're
+doing something interesting with it, I would be glad to hear from you. Feel
+free to contact me by email (
+
+This software is provided 'as-is', without any expressed or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+