- Function
Platform dependent code extensions.
- Header
- Declaration
unsigned __fastcall__ tgi_ioctl (unsigned char code, unsigned val);
- Description
Some platforms have extra display hardware that is not supported by standard tgi functions. You can extend the driver to support this extra hardware using tgi_ioctl functions.
- Limits
- 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.
- Availability
cc65
- See also
Other tgi functions.
- Example
#define tgi_sprite(spr) tgi_ioctl(0, (unsigned)(spr)) #define tgi_flip() tgi_ioctl(1, 0) #define tgi_setbgcolor(bgcol) tgi_ioctl(2, (unsigned)(bgcol)) #define tgi_setframerate(rate) tgi_ioctl(3, (unsigned)(rate)) #define tgi_busy() tgi_ioctl(4, 0) #define tgi_updatedisplay() tgi_ioctl(4, 1) if (!tgi_busy()) { tgi_sprite(&background); tgi_setcolor(COLOR_BLUE); tgi_outttextxy(20,40,"Hello World"); tgi_updatedisplay(); }