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
Missing Graphics functions in BASIC
- ahenry3068
- Posts: 1134
- Joined: Tue Apr 04, 2023 9:57 pm
Re: Missing Graphics functions in BASIC
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.
The other functions can be called with a SYS though there are no specific BASIC keywords for them.
- ahenry3068
- Posts: 1134
- Joined: Tue Apr 04, 2023 9:57 pm
Re: Missing Graphics functions in BASIC
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
viewtopic.php?t=7022