+
+
+
+/
+
+The function is available only as a fastcall function; so, it may be used
+only in the presence of a prototype.
+
+,
+,
+,
+,
+
+
+
+
+
+atmos_tick
+
+
+
+/
+
+The function is available only as a fastcall function; so, it may be used
+only in the presence of a prototype.
+
+,
+,
+,
+,
+
+
+
+
+
+atmos_tock
+
+
+
+/
+
+The function is available only as a fastcall function; so, it may be used
+only in the presence of a prototype.
+
+,
+,
+,
+,
+
+
+
+
+
+atmos_zap
+
+
+
+/
+
+The function is available only as a fastcall function; so, it may be used
+only in the presence of a prototype.
+
+,
+,
+,
+,
+
+
+
+
+
atoi
@@ -1925,7 +2093,7 @@ only be used in presence of a prototype.
,
+
@@ -2057,6 +2225,31 @@ function, in order to provide input from the keyboard.
+cmb_k_second
+
+
+
+/
+
+The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+The function can only be called after a call to LISTEN.
+The function will not work after a TALK.
+When a secondary address is to be sent to a device on the serial bus,
+the address must first be ORed with $60.
+
+
+
+
+
+
cbm_k_setlfs
@@ -2122,6 +2315,28 @@ only be used in presence of a prototype.
+cbm_k_tksa
+
+
+
+/
+
+The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+The function can only be called after a call to TALK.
+The function will not work after a LISTEN.
+
+
+
+
+
+
cbm_k_udtim
@@ -2157,9 +2372,6 @@ bus. Only devices previously commanded to LISTEN are affected. This
function is normally used after the host computer is finished sending data
to external devices. Sending the UNLISTEN commands the listening devices
to get off the serial bus so it can be used for other purposes.
-
-
-
@@ -2168,6 +2380,28 @@ to get off the serial bus so it can be used for other purposes.
+cbm_k_untlk
+
+
+
+/
+
+
+
+
+
cclear
@@ -2342,6 +2576,89 @@ changing values. (See the description of
+clock_getres
+
+
+
+/
+/ is not
+a multiple of
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+Depending on the target either the
+,
+
+
+
+
+
+clock_gettime
+
+
+
+/
+
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+Many platforms supported by cc65 do not have a realtime clock, so the
+retrieved value may not be valid. See also the platform-specific information.
+
+,
+,
+
+
+
+
+
+clock_settime
+
+
+
+/
+
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+Many platforms supported by cc65 do not have a realtime clock, so
+setting the time may not work. See also the platform-specific information.
+
+,
+
+
+
+
+
clrscr
@@ -2406,50 +2723,165 @@ be used in presence of a prototype.
-creat
+cpeekc
-/
-/
+
-/ with
-The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
+Conio peek functions don't have
-,
-
+,
+,
+,
+
-cprintf
+cpeekcolor
-/
-/. -->
+
-Like all other Conio peek functions don't have ,
+,
+,
,
-,
+
+
+
+
+
+cpeekrevers
+
+
+
+/
+
+Conio peek functions don't have The function is available as only a fastcall function;
+so, it may be used only in the presence of a prototype.
+
+,
+,
+,
+,
+
+
+
+
+
+creat
+
+
+
+/
+
+/ with
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+,
+
+
+
+
+
+cprintf
+
+
+
+/
+/. -->
+
+Like all other
+,
+,
,
,
@@ -2658,6 +3090,126 @@ used in presence of a prototype.
+detect_c128
+
+
+
+/
+
+The function is specific to the C64 and C128.
+
+,
+,
+
+
+
+
+detect_c64dtv
+
+
+
+/
+
+The function is specific to the C64.
+
+,
+,
+
+
+
+
+detect_c65
+
+
+
+/
+
+The function is specific to the C64.
+
+,
+,
+
+
+
+
+detect_chameleon
+
+
+
+/
+
+The function is specific to the C64.
+
+,
+,
+
+
+
+
+detect_scpu
+
+
+
+/
+
+The function is specific to the C128 and C64.
+
+,
+,
+
+
+
+
+detect_turbomaster
+
+
+
+/
+
+The function is specific to the C64.
+
+,
+,
+
+
+
+
div
@@ -2698,9 +3250,9 @@ exits.
/* Hello World */
-#include
-#include
-#include
+#include <stdio.h>
+#include <unistd.h>
+#include <cc65.h>
int main(void)
{
printf("Hello World\n");
@@ -3051,20 +3603,21 @@ program, it may not be able to read it.
-/
+,
+, /
-The function is specific to the C128.
-2MHz clock will not work in 40 column mode.
+The function is specific to the C128, C16 and Plus4.
+On the C128 the 2MHz clock will not work in 40 column mode.
-,
,
-,
-
@@ -3196,153 +3749,420 @@ header files define constants that can be used to check the return code.
-getcpu
+get_c128_speed
-/
-
-
+/
+
-Other, more exotic CPU types are not disinguished.
+The function is specific to the C64 and C128.
+The function does not check if the C128 CPU is the current CPU.
+See the accelerator.h header for the speed definitions.
-,
+,
-getenv
+get_c64dtv_speed
-/
-/
+
-What exactly is stored in the environment depends on the machine the
-program is running on.
-The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
+The function is specific to the C64.
+The function does not check for the presence of the C64DTV.
+See the accelerator.h header for the speed definitions.
-,
+,
-getopt
+get_c65_speed
-/
-/
+
-The implementation will not reorder options. A non option on the command
-line will terminate option processing. All remaining arguments are not
-recognized as options, even if the start with a '-' character.
-The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
+The function is specific to the C64.
+The function does not check for the presence of a C65/C64DX in C64 mode.
+See the accelerator.h header for the speed definitions.
-,
+,
-gotox
+get_chameleon_speed
-/
-/
+
-The function is only available as fastcall function, so it may
-only be used in presence of a prototype.
-Invalid values for the X position (out of screen coordinates) may
-lead to undefined behaviour.
+The function is specific to the C64.
+The function does not check for the presence of the C64 Chameleon cartridge.
+See the accelerator.h header for the speed definitions.
-,
-,
-,
-
+,
+,
-gotoxy
+get_scpu_speed
-/
-/
+
-The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
-Invalid values for any of both coordinates (out of screen positions) may
-lead to undefined behaviour.
+The function is specific to the C128 and C64.
+The function does not check for the presence of the cartridge.
+See the accelerator.h header for the speed definitions.
-,
-,
-,
-
+,
+,
-gotoy
+get_turbomaster_speed
-/
-/
+
-The function is only available as fastcall function, so it may
-only be used in presence of a prototype.
-Invalid values for the Y position (out of screen coordinates) may lead
-to undefined behaviour.
+The function is specific to the C64.
+The function does not check for the presence of the C64 Turbo Master cartridge.
+See the accelerator.h header for the speed definitions.
-,
+,
+
+
+
+getcpu
+
+
+
+/
+
+
+
+Other, more exotic CPU types are not disinguished.
+
+
+
+
+
+getcurrentdevice
+
+
+
+/
+
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+getdevicedir
+
+
+
+/
+
+Calling getdevicedir() The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+,
+,
+,
+
+
+chdir (getdevicedir (device, buf, sizeof buf));
+
+cf.
+
+
+
+getenv
+
+
+
+/
+
+What exactly is stored in the environment depends on the machine the
+program is running on.
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+getfirstdevice
+
+
+
+/
+
+Calling getnextdevice() does The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+,
+,
+
+
+unsigned char dev = getfirstdevice ();
+while (dev != INVALID_DEVICE) {
+ printf ("%d\n", dev);
+ dev = getnextdevice (dev);
+ }
+
+
+
+
+
+getopt
+
+
+
+/
+
+The implementation will not reorder options. A non option on the command
+line will terminate option processing. All remaining arguments are not
+recognized as options, even if the start with a '-' character.
+The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+gotox
+
+
+
+/
+
+The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+Invalid values for the X position (out of screen coordinates) may
+lead to undefined behaviour.
+
+,
+,
+,
+
+
+
+
+
+gotoxy
+
+
+
+/
+
+The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+Invalid values for any of both coordinates (out of screen positions) may
+lead to undefined behaviour.
+
+,
+,
+,
+
+
+
+
+
+gotoy
+
+
+
+/
+
+The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+Invalid values for the Y position (out of screen coordinates) may lead
+to undefined behaviour.
+
+,
,
@@ -3578,6 +4398,27 @@ fastcall function, so it may only be used in presence of a prototype.
+isfast
+
+
+
+,
+, /
+
+The function is specific to the C128, C16 and Plus4.
+
+,
+,
+
+
+
+
isgraph
@@ -5157,7 +5998,7 @@ if (rename (OLDNAME, NEWNAME) == 0) {
before a call to The break vector is reset on program termination, so it's not strictly
-necessary to call this function as a part of your clean-up when exitting the program.
+necessary to call this function as a part of your clean-up when exiting the program.
The interrupt vector is reset on program termination, so it's not strictly
-necessary to call this function as a part of your clean-up when exitting the program.
+necessary to call this function as a part of your clean-up when exiting the program.
The break vector is reset on program termination, so it's not strictly
necessary to call / as a part of your
-clean-up when exitting the program.
+clean-up when exiting the program.
The interrupt vector is reset on program termination, so it's not strictly
necessary to call / as a part of your
-clean-up when exitting the program.
+clean-up when exiting the program.
-setjmp
+set_c128_speed
-/
-/ function and
-returns zero.
+/
+
-The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
-The function is specific to the C64 and C128.
+The function does not check if the C128 CPU is the current CPU.
+See the accelerator.h header for the speed definitions.
-
+,
+,
-setlocale
+set_c64dtv_speed
-/
-/
+
-The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
-cc65 supports only the "C" locale, so calling this function to set a
+The function is specific to the C64.
+The function does not check for the presence of the C64DTV.
+See the accelerator.h header for the speed definitions.
+
+,
+,
+
+
+
+
+set_c65_speed
+
+
+
+/
+
+The function is specific to the C64.
+The function does not check for the presence of a C65/C64DX in C64 mode.
+See the accelerator.h header for the speed definitions.
+
+,
+,
+
+
+
+
+set_chameleon_speed
+
+
+
+/
+
+The function is specific to the C64.
+The function does not check for the presence of the C64 Chameleon cartridge.
+See the accelerator.h header for the speed definitions.
+
+,
+,
+
+
+
+
+set_scpu_speed
+
+
+
+/
+
+The function is specific to the C128 and C64.
+The function does not check for the presence of the cartridge.
+See the accelerator.h header for the speed definitions.
+
+,
+,
+
+
+
+
+set_turbomaster_speed
+
+
+
+/
+
+The function is specific to the C64.
+The function does not check for the presence of the C64 Turbo Master cartridge.
+See the accelerator.h header for the speed definitions.
+
+