Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Oliver Schmidt Newsgroups: comp.sys.apple2.programmer Subject: Re: An Attempt at CC65 Date: Sun, 30 Jun 2024 09:52:02 -0000 (UTC) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 30 Jun 2024 09:52:02 -0000 (UTC) Injection-Info: solani.org; logging-data="4056"; mail-complaints-to="abuse@news.solani.org" User-Agent: NewsTap/5.5 (iPhone/iPod Touch) Cancel-Lock: sha1:MWvClM7DoSTXmwIbK4LE/AvBLr0= sha1:pmGzVFGS4HSfJNG73LzP9SGzpIA= X-User-ID: eJwNwoENwDAIA7CXiiDJOKdh7f8nbLKRDI6KYOH+Tnagky9lRy3F6Jq921Y2iHnqxMBbs+4HC3cQ4Q== Xref: csiph.com comp.sys.apple2.programmer:6313 Hi, > I guess I thought I could just switch languages, > compile, and run. I thought I could rewrite some > of my silly BASIC programs in C and gain some speed > and then I realized it may not be that simple. I've > seen the TGI drivers. Is that how to get into GR and > HGR and such? Yes, the goal of the cc65 library is NOT to make C programs look as similar to BASIC programs as possible. Yes, TGI is the cc65 way to do graphics. No, You can't just JSR to a ROM routine. The ROM is banked out. Use _sys() instead. See https://cc65.github.io/doc/funcref.html#ss3.15 Regards, Oliver