Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6311
| Path | csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | TRS-90 <matthewmpower@gmail.com> |
| Newsgroups | comp.sys.apple2.programmer |
| Subject | An Attempt at CC65 |
| Date | Sun, 30 Jun 2024 01:01:12 GMT |
| Organization | A noiseless patient Spider |
| Lines | 43 |
| Message-ID | <BSjnEMbtGSbpHPcpEKbl%matthewmpower@gmail.com> (permalink) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="iso-8859-1" |
| Injection-Date | Sun, 30 Jun 2024 02:55:05 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="c3714b2e3525a3481490ebe372d0c54a"; logging-data="200637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Rl0cAV/z4iZpPUMkNYPEDRlSLmXmdhQE=" |
| User-Agent | SNAP v1.2.2 (GSOS 6.0.1 (65816)) |
| Cancel-Lock | sha1:TLUfhXihwQU0TxFrP9xSFsyEHvw= |
| Xref | csiph.com comp.sys.apple2.programmer:6311 |
Show key headers only | View raw
So I imagine I'm so far in the wrong direction
that I may earn a laugh, but that's ok!
I'm trying to recreate this Applesoft line in
C with CC65:
GR : PRINT "GR SET"
So I realized that there does not seem to be a
GR command in CC65 and after digging around in
a disassembly listing I now have (again in BASIC):
CALL -1216 : PRINT "GR SET" REM $FB40
So an least I'm calling the sub without the Applesoft command. Works good.
Here's my C attempt. It freezes the system and never gets to the print command:
------------------------------
/* cl65 -O -t apple2enh setgr.c */
# include <stdio.h>
void gr() {
asm ("jsr FB40");
}
int main() {
gr();
printf("GR SET\n");
return 0;
}
-------------------------------
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?
Thanks all!
TRS-90
Back to comp.sys.apple2.programmer | Previous | Next — Next in thread | Find similar
An Attempt at CC65 TRS-90 <matthewmpower@gmail.com> - 2024-06-30 01:01 +0000 Re: An Attempt at CC65 TRS-90 <matthewmpower@gmail.com> - 2024-06-30 01:14 +0000 Re: An Attempt at CC65 Oliver Schmidt <ol.sc@web.de> - 2024-06-30 09:52 +0000
csiph-web