I was reading up on CP/M and found a reference to a common graphics library called GSX-80. As the first link below reveals, it's not available for the C128, though he does have the documentation for it on his site if you'd like to try your hand at porting it. :)
Anyway, it got me curious, and I got to Googling. An hour later, I came up with four interesting links. The first looks good, with a propreitary C128 CP/M graphics library for C called SG C Tools. The second is a link to COMAL 80, which offers graphics capabilities if you like to program in COMAL, which I do, so if I ever actually do anything with this information, I will probably use it. The last two are undocumented file links on the Genie archive. It looks like the first of these is probably identical to the SG C Tools available above. But I have no idea what the other one is.
Graphics on C128 CP/M: http://www.z80.eu/gsx.html
COMAL for C128 CP/M: http://www.schorn.ch/cpm/intro.html
Graphics in CP/M Ansi C (Genie): http://cbmfiles.com/genie/geniefiles/C128CPM/SGTOOL12.ARC
Bios-based CP/M graphics (Genie): http://cbmfiles.com/genie/geniefiles/C128CPM/GRC128.ZIP
Have fun!
P.S. I know. Lance probably has ALL of these in the library here. Don't you, Lance? :)
Thanks for the links... These will most definitely come in handy as I've been trying to find info regarding accessing the SID chip from CP/M...
Quote from: airship on October 14, 2008, 04:35 AM
I was reading up on CP/M and found a reference to a common graphics library called GSX-80. As the first link below reveals, it's not available for the C128, though he does have the documentation for it on his site if you'd like to try your hand at porting it. :)
Anyway, it got me curious, and I got to Googling. An hour later, I came up with four interesting links. The first looks good, with a propreitary C128 CP/M graphics library for C called SG C Tools. The second is a link to COMAL 80, which offers graphics capabilities if you like to program in COMAL, which I do, so if I ever actually do anything with this information, I will probably use it. The last two are undocumented file links on the Genie archive. It looks like the first of these is probably identical to the SG C Tools available above. But I have no idea what the other one is.
Graphics on C128 CP/M: http://www.z80.eu/gsx.html
COMAL for C128 CP/M: http://www.schorn.ch/cpm/intro.html
Graphics in CP/M Ansi C (Genie): http://cbmfiles.com/genie/geniefiles/C128CPM/SGTOOL12.ARC
Bios-based CP/M graphics (Genie): http://cbmfiles.com/genie/geniefiles/C128CPM/GRC128.ZIP
Have fun!
P.S. I know. Lance probably has ALL of these in the library here. Don't you, Lance? :)
Here- http://landover.no-ip.com/cpm/programming/index.html
Just curious, but did you know that the Pascal program for the C128 already allowed for graphics in C128 40/80 column mode? I mean, why the extra work to get it done from the z80 chip?