Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6311
| From | TRS-90 <matthewmpower@gmail.com> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | An Attempt at CC65 |
| Date | 2024-06-30 01:01 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <BSjnEMbtGSbpHPcpEKbl%matthewmpower@gmail.com> (permalink) |
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