Some introductory notes on how I'm using cc65 to do develop stuff in C.
https://voidstar.blog/using-cc65-c-comp ... nd-wintel/
Example then leads into VTERM, where I'm trying to minimize use of C-standard library and utilize inline assembly. For example, avoiding use of printf in particular. The "core_x16.h" includes some possibly useful (text-mode) #define macros.
https://github.com/voidstar78/VTERMX16/tree/main/vterm
Very much still a work in progress. A lot of people are well past this already, but everyone learns in different ways - so hope this approach and initial notes helps somebody out on getting started with cc65 for this platform.
Sticking to text mode stuff for now -- a rebirth of Kroz-like games by Scott Miller for the PC would be neat to see (with these fancy new text mode resolutions!)