C128 and SG tools

Discussion about other targets
Post Reply
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

C128 and SG tools

Post by stefano »

I'm succeding in porting the "SG Tools" for the C128 in z88dk.
Incredibly most of the demo runs correctly (synthetized and sampled sound on SID, high resolution graphics, etc)... I'm looking foreword some feedback I shoulg get from a guy testing in on the real platform, then I'll put it all online.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

First release is now online, for both CP/M or direct run modes.
There's enough to run most of the original demo: SID sound (synthetized and, with old chips, 4 bit sampled RAW blocks), high resolution text and graphics and extra input scanning (still slightly broken).
There's now the opportunity to add a more powerful console driver (80x25 or 80x50 color text) and "standard" sound and graphics functions.
The font handling is still something I don't understand, so I'm stuck in non-CP/M mode with the upper case alternate character set, which is quite uncomfortable. I also have little informations on the 1541 drives (but the one that accessing to it is quite difficult and that the number of sectors is not linear).

It has been already tested on the real hardware ;)
.. other developers/testers around here ?
oflor
Member
Posts: 19
Joined: Fri Nov 09, 2018 9:43 pm

Post by oflor »

... other developers/testers around here ?
Yes Mr. Stefano, I'm here, late but at last.

I'm writing some new topics to know of deep features of this library plus z88dk standard libraries.

There are some documentation I can read about z88dk?

Thanks and
Best Regards
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

In afraid you have only the wiki section in this project and fragments from the old website wiki
oflor
Member
Posts: 19
Joined: Fri Nov 09, 2018 9:43 pm

Post by oflor »

Where I can get more information / documentation?

I'm not afraid to read a lot.

I see there are some guys that is making games on c128 using z88dk in native mode....there are cool apps.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

I'm sorry for taking so long before answering.
Here's a list of links related to z88dk and C128 documentation, please consider that most of the existing z88dk functions can be used on the c128 port too, even if not documented in the following links:

https://github.com/z88dk/z88dk/wiki/Pla ... odore-c128
(for graphics add to command line -lgfx128, -lgfx128hr or -lgfx128hr480)

Old pages, sooner or later they'll fade
https://www.z88dk.org/wiki/doku.php?id=library:c128

Useful/possibly valid with c128:
https://www.z88dk.org/wiki/doku.php?id=library:wingui
https://www.z88dk.org/wiki/doku.php?id=library:bgi
https://github.com/z88dk/z88dk/wiki/Cla ... e-Graphics


(single bit sound should be working via bit banging on SID)
https://www.z88dk.org/wiki/doku.php?id=library:sound

(AY is partially emulated remapping to SID)
https://www.z88dk.org/wiki/doku.php?id=library:psg


For graphics, I strongly suggest to try the sprite editor:
{z88dk}/support/sprites

And the SVG converter:
{z88dk}/support/graphics
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

..and obviously, most of the examples will work on the C128. Don't be shy and try everything under {z88dk}/examples, not only the stuff in the target specific folder
oflor
Member
Posts: 19
Joined: Fri Nov 09, 2018 9:43 pm

Re: C128 and SG tools

Post by oflor »

Thank You very much for Your links.

Best Regards
xahmol
New member
Posts: 1
Joined: Wed Mar 31, 2021 2:07 pm

Re: C128 and SG tools

Post by xahmol »

HI @Stefano,

First thanks for porting SG Tools! I found it very useful in creating my first CP/M C128 project with Z88dk:
https://github.com/xahmol/CPMUTools

But I also discovered that the author of the original SG Tools, Steven P. Goldsmith, did not stop developing, and recently has created a new lib from it, C3L.
https://github.com/sgjava/c3l

I like this newer lib as it seems to be faster in the print ouput, also has console emulation, and also does VIC 40 column screen.

What would it take to port that as well to Z88dk? Quickly had a look, but feel way to novice at z88dk to do it myself. Happy to test though.

This is by the way a video of its demo:
https://youtu.be/mbpPosev1OI?si=Ps3OGLW54k0LSwwn
Last edited by xahmol on Sat Nov 04, 2023 1:06 pm, edited 1 time in total.
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Re: C128 and SG tools

Post by stefano »

Interesting!
It is again a relevant quantity of functions. It's probably easier to first try replicating the exact functions by using the demonstration programs as test cases.
I haven't looked at the code yet but it should be feasible.
Post Reply