Looking to possibly port cingb to a Linux PDA platform - Agenda's VR3. The VR3 runs X but only supports X's 4 bit StaticGray color mode. I looked through the source for unix.c and noticed that building colortables has been hardcoded for 32, 16 and 8 bits (which makes sense - a lot quicker to do memory addressing), but it looks like 4 bits just might <maybe> be doable.
Question is: how much of an overhaul would it take to implement a 4bpp mode? If it's easily doable, I can see what I can hack out (but also need to get rid of the floating point arithmetic and possibly redo the sound). Ultimately would be pretty cool to have this running on a Linux PDA ;)
Welcome... very interesting...
OK, let's see...
We have 2 problems:
update gameboy.c, implementing 2 routines
(which i think are mostly cut'n'paste work)
gb_scanline4 and cgb_scanline4 (cgb might be
unix.c is eventually to be changed, I don't
know how compatible the X-server on PDAs is.
Sound is very crappy, so don't implement it
for now, except You really want to start from
scratch. I would be really happy, but it's
lots of work.
cingb doesn't use floating-point-arithmetic.
(once again, please forget about the sound routines, this is just experimenting).
Gotcha. I'm hacking out sound anyways, since the Agenda doesn't support it (yet). The X server should be functionally the same as XFree86, but the source hasn't been released yet. This is all really an extension of the vr-linux project... so it's linux and linux libraries thru and thru (just recompiled for MIPS).
Notice there were no floats or pthreads in the source, which makes things much easier to port. The only big question in my mind is, as you said, unix.c. We'll see how well things hold up in a cross-compiled environment.
Well, since the real Gameboy has got only gray colors. I'm sure it is possible to optimize the sources for this mode. There is lots of palette addressing and perhaps you can make this routine shorter.
Do you have enough docs about Gameboy and sound?
Do you want a developer access to the CVS?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.