+[
][
@@ -411,12 +416,14 @@ It does not declare any functions.
][
+
+
]
@@ -431,7 +438,6 @@ It does not declare any functions.
[
][
][
-][
][
][
][
@@ -498,8 +504,47 @@ It does not declare any functions.
]
-(incomplete)
-
+
+[
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+][
+]
@@ -659,21 +704,21 @@ id="malloc" name="malloc"> may still return _poserror
-
-
+/
/ with an
-argument of
- Since operating system specific error code are - you guessed it -
operating system specific, the value in
The function is only available as fastcall function, so it may only
be used in presence of a prototype.
@@ -1844,7 +1889,7 @@ extended memory that should be supported. There is no autodetect capability.
memory and returns a pointer to the page frame. Depending on the hardware
and driver, the data is either mapped into the address space or transfered
into a buffer. If you don't need the actual contents of the page (for example
-because you're going to overwrite it completely, it is better to call
+because you're going to overwrite it completely), it is better to call
/ instead.
@@ -2276,9 +2321,9 @@ to undefined behaviour.
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
- When compiling with
/
/
- When compiling with
/
- When compiling with
-mouse_box
+mouse_setbox
/
-
- The function does not check if the mouse cursor is currently within the
@@ -3272,12 +3315,35 @@ used in presence of a prototype.
,
[
]
+mouse_getbox
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+
,
+[
+]
+
+
+
mouse_buttons
@@ -3477,13 +3543,14 @@ used in presence of a prototype.
is visible, it is shown at the new position.
- The function does not check if the new position is within the bounding
-box specified with
/.
+box specified with /.
- The function is only available as fastcall function, so it may only be
used in presence of a prototype.
+[,
+][
]
@@ -4805,245 +4872,1143 @@ be used in presence of a prototype.
-time
+tgi_arc
-/
-/
+
-- 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
-returned value may not be valid.
+
- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
- The function behaves unexpectedly or may crash if the angles are out
+of range.
-
,
+[,
+][,
+][,
+][
+]
+/* Draw the upper half of an ellipse */
+tgi_setcolor(TGI_COLOR_BLUE);
+tgi_arc (50, 50, 40, 20, 0, 180);
+
-toggle_videomode
+tgi_bar
-/
-/
+
-- The function is specific to the C128.
-
- This function is deprecated. Please use
[ instead!
+]- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
-
,
-[,
-][
-]
+tgi_setcolor(TGI_COLOR_GREEN);
+tgi_bar(10, 10, 100, 60);
+
-tolower
+tgi_circle
-/
-/
+
-- The function is only available as fastcall function, so it may
-only be used in presence of a prototype.
+
- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
-
,
-[,
-][
-],
+[,
+][,
+][,
+][
+]
+tgi_setcolor(TGI_COLOR_BLACK);
+tgi_circle(50, 40, 40);
+
-toupper
+tgi_clear
-/
-/
+
-- The function is only available as fastcall function, so it may
-only be used in presence of a prototype.
+
- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
-
,
-[,
-][
+]
-ultoa
+tgi_done
-/
-/
+
-- There are no provisions to prevent a buffer overflow.
-
- The function is non standard, so it is not available in strict ANSI mode.
-You should probably use
The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
,
-[,
-][,
-][,
-][
+]
-unlink
+tgi_ellipse
-/
-
-- The use of this function is discouraged. Please use
/ instead, which is a native ANSI C function and does the same.
-- This function is not available on all cc65 targets (depends on the
-availability of file I/O).
+
/
+
- The function is only available as fastcall function, so it may only
be used in presence of a prototype.
-
- Instead of
/ should be
-used, which has the same semantics, but is more portable, because it conforms
-to the ISO C standard.
-
-
-#include <stdio.h>
-#include <unistd.h>
+[,
+][,
+][,
+][,
+][
+]
+tgi_setcolor(TGI_COLOR_RED);
+tgi_ellipse (50, 40, 40, 20);
+
+
+
-#define FILENAME "helloworld"
-if (unlink (FILENAME) == 0) {
- printf ("We deleted %s successfully\n", FILENAME);
-} else {
- printf ("There was a problem deleting %s\n", FILENAME);
-}
+tgi_getcolor
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+color = tgi_getcolor();
+tgi_getcolorcount
-utoa
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+if (tgi_getcolorcount() == 2) {
+ printf("Only monochrome graphics is supported\n");
+}
+
+
+
+
+tgi_getdefpalette
-/
-/
+
-- There are no provisions to prevent a buffer overflow.
-
- The function is non standard, so it is not available in strict ANSI mode.
-You should probably use
The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
,
-[,
-][,
-][,
-][
+]
+tgi_geterror
-vcprintf
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_geterrormsg
-/
-/. -->
+/
+
-- Like all other
The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
,
-[,
-][,
-][,
-][
+]
+tgi_getmaxcolor
-videomode
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_getmaxx
-/
-/
+
-- The function is specific to the C128.
-
- This function is replaces
[.
-]- The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
+
- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
-
+
+
+tgi_getmaxy
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_getpagecount
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
,
+[
+]
+
+
+tgi_getpalette
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_getpixel
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_getxres
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_getyres
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_gotoxy
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_init
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
/ after
+
+extern char lynxtgi[]; //Include the driver statically instead of loading it.
+tgi_install(&lynxtgi);
+tgi_init(); //Set up the default palette and clear the screen.
+
+
+
+
+tgi_install
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+
,
+[,
+][
+]
+extern char lynxtgi[]; //Include the driver statically instead of loading it.
+
+tgi_install(&lynxtgi);
+tgi_init(); //Set up the default palette and clear the screen.
+
+
+
+
+
+tgi_ioctl
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
- These functions are not easily portable to other cc65 platforms.
+
+
+#define tgi_sprite(spr) tgi_ioctl(0, (void*)(spr))
+#define tgi_flip() tgi_ioctl(1, (void*)0)
+#define tgi_setbgcolor(bgcol) tgi_ioctl(2, (void*)(bgcol))
+#define tgi_setframerate(rate) tgi_ioctl(3, (void*)(rate))
+#define tgi_busy() tgi_ioctl(4, (void*)0)
+#define tgi_updatedisplay() tgi_ioctl(4, (void*)1)
+if (!tgi_busy()) {
+ tgi_sprite(&background);
+ tgi_setcolor(TGI_COLOR_BLUE);
+ tgi_outttextxy(20,40,"Hello World");
+ tgi_updatedisplay();
+}
+
+
+
+
+
+tgi_line
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_lineto
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_load
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_load_driver
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_outtext
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_outtextxy
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+
+tgi_pieslice
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
- The function behaves unexpectedly or may crash if the angles are out
+of range.
+
+
,
+[,
+][,
+][,
+][
+]
+/* Draw the closed upper half of an ellipse */
+tgi_setcolor(TGI_COLOR_BLUE);
+tgi_pieslice (50, 50, 40, 20, 0, 180);
+
+
+
+
+
+tgi_setcolor
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+tgi_setcolor(TGI_COLOR_BLACK);
+tgi_bar(0,0,30,30);
+tgi_setcolor(TGI_COLOR_WHITE);
+tgi_bar(10,10,20,20);
+
+
+
+
+tgi_setdrawpage
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+tgi_setdrawpage(1);
+tgi_outtextxy(10, 10, "Hello World");
+tgi_setviewpage(1); // Show page 1
+tgi_setdrawpage(0);
+tgi_outtextxy(10, 10, "Creating next frame");
+...
+tgi_setviewpage(0); // Show page 0
+
+
+
+
+tgi_setpalette
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_setpixel
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_setviewpage
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+tgi_setdrawpage(1);
+tgi_outtextxy(10, 10, "Hello World");
+tgi_setviewpage(1); // Show page 1
+tgi_setdrawpage(0);
+tgi_outtextxy(10, 10, "Creating next frame");
+...
+tgi_setviewpage(0); // Show page 0
+
+
+
+
+tgi_textheight
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_textstyle
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_textwidth
+
+
+
+/
+/
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_uninstall
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+tgi_unload
+
+
+
+/
+
+- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
+
+
+
+time
+
+
+
+/
+
+- 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
+returned value may not be valid.
+
+
+
+
+
+toggle_videomode
+
+
+
+/
+
+- The function is specific to the C128.
+
- This function is deprecated. Please use
[ instead!
+
+],
+[,
+][
+]
+
+
+
+tolower
+
+
+
+/
+
+- The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+
+
,
+[,
+][
+]
+
+
+
+toupper
+
+
+
+/
+
+- The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+
+
,
+[,
+][
+]
+
+
+
+ultoa
+
+
+
+/
+
+- There are no provisions to prevent a buffer overflow.
+
- The function is non standard, so it is not available in strict ANSI mode.
+You should probably use
The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+,
+[,
+][,
+][,
+][
+]
+
+
+
+unlink
+
+
+
+/
+
+- The use of this function is discouraged. Please use
/ instead, which is a native ANSI C function and does the same.
+- This function is not available on all cc65 targets (depends on the
+availability of file I/O).
+
- The function is only available as fastcall function, so it may only
+be used in presence of a prototype.
+
- Instead of
/ should be
+used, which has the same semantics, but is more portable, because it conforms
+to the ISO C standard.
+
+
+
+#include <stdio.h>
+#include <unistd.h>
+
+#define FILENAME "helloworld"
+
+if (unlink (FILENAME) == 0) {
+ printf ("We deleted %s successfully\n", FILENAME);
+} else {
+ printf ("There was a problem deleting %s\n", FILENAME);
+}
+
+
+
+
+
+utoa
+
+
+
+/
+
+- There are no provisions to prevent a buffer overflow.
+
- The function is non standard, so it is not available in strict ANSI mode.
+You should probably use
The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+,
+[,
+][,
+][,
+][
+]
+
+
+
+vcprintf
+
+
+
+/
+/. -->
+
+- Like all other
The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+,
+[,
+][,
+][,
+][
+]
+
+
+
+videomode
+
+
+
+,
+[/
+]
+- The function is specific to the C128 and enhanced Apple //e.
+
- This function replaces
[.
+]- The function is only available as fastcall function, so it may only be
+used in presence of a prototype.
+
+
,
[,
]