Missing Graphics functions in BASIC

All aspects of programming on the Commander X16.
Post Reply
Bill Leue
Posts: 20
Joined: Thu Sep 08, 2022 5:52 pm

Missing Graphics functions in BASIC

Post by Bill Leue »

According to the current version of the X16 PRG, the Kernal contains these useful graphics calls:
GRAPH_set_window
GRAPH_set_font
GRAPH_get_char_size
GRAPH_draw_oval
GRAPH_draw_image

...and others. However, the BASIC does not seem to support any of these. (unless maybe the documentation is incomplete?) I am surprised that these functions are not available, since it would be just a kernal call to implement them.
-Bill
User avatar
ahenry3068
Posts: 1134
Joined: Tue Apr 04, 2023 9:57 pm

Re: Missing Graphics functions in BASIC

Post by ahenry3068 »

GRAPH_draw_oval is specifically listed as not implemented (if you watch the footnotes). GRAPH_set_window is also only partially implemented.

The other functions can be called with a SYS though there are no specific BASIC keywords for them.
User avatar
ahenry3068
Posts: 1134
Joined: Tue Apr 04, 2023 9:57 pm

Re: Missing Graphics functions in BASIC

Post by ahenry3068 »

I've got some code here that demonstrates using SYS to call ROM functions and at the same time implements it's own Draw_Image using a file as an image buffer

viewtopic.php?t=7022
Post Reply