Hi guys,
you probably remember GFXlib by Rafael Jannone. It's a C library for Hitech-C that provides graphic functions for SCREEN 2 and basic PSG capabilities, with a fair amount of examples included. Recently I forked it and ported it to SDCC.
SDCC doesn't offer a builtin MSX GFX library, so probably everyone reinvented the wheel until now. The best coders probably made their excellent private wheels, but it's a hard task for beginners. I hope this tiny port project may help them.
So: if you have time and curiosity try it! if you find errors let me know: comments, hints, testcases and patches are of course more than welcome, thank you in advance.
Remarks and advices:
- read carefully the SDCC-specific README and inspect the SDCC-specific makefile before trying to compile
- SDCC sets a 1024-byte heap by default (see SDCC manual, section 3.15.2.2 malloc.h), and you have to build a custom _heap.c if you want a bigger heap; for the examples this is done by Makefile.sdcc
- the primary goal of my port was the compatibility with the Hitech-C version of GFXlib (so tomorrow the two versions may merge), not speed nor enhanced functionality, so don't expect too much
- if you're short of time, just play with the examples compiled in ROM format
Kindest regards, Andrea.
- relevant link: the SDCC port of MSX GFXlib
ログイン/登録して投稿