Fabrizio-Caruso / CROSS-LIB

CROSS LIB - A universal 8-bit library and some games built with it
314 stars 30 forks source link

[new feature] chase coco has no color output #277

Closed ghost closed 1 year ago

ghost commented 2 years ago

Tried to fix this myself LoL. On build: xl chase coco -D_XL_NO_COLOR in build output. So i thought i was in the right file and commented out the entry in games/chase/makefiles.chase/Makefile.cmoc_targets next build did not have the entry, but still no color was present in game. Things are a bit hard to follow of where exactly the config file for the target is.

Going to give newlib-6809 a look, seems a bit lighter than this, I don't need cross development on other platforms right now, But the concept is interesting.

I started to do a little C programming using SDCC for the 8052 on some home made SBC's back in 2007 But those projects did not even require any kind of std library.

Fabrizio-Caruso commented 2 years ago

For the CoCo I have not implemented any color support. I plan to implement support for 4 colors and 16 colors (CoCo3) but at the moment it is just monochromatic high resolution.

The project is in the directory inside games or examples, where you find Makefile.<project>. Chase has all possible targets so, I had to split the Makefile into many files which are included by Makefile.chase.

Cross-Lib is not the best library for any specific target. I will improve it but its main goal is to be massively multi-target. Currently Cross-Lib makes a lot of sense if you want to code a game with simple graphics for more than 100 targets with the very same code (no need to adapt it). Instead if you want to exploit any specific target, it is better to use a specific library.

Fabrizio-Caruso commented 2 years ago

By the way, any help on the CoCo and Dragon and in particular on the CoCo 3 is welcome. I can figure out easily how to implement 4 color graphics on CoCo and Dragon.

Fabrizio-Caruso commented 2 years ago

@6809-user by the way, I was considering supporting the French Minitel (by the way are you French?), which uses the Intel 8051 architecture. A Minitel can be hacked and reprogrammed by changing its firmware in its ROMs. Any help, is welcome.