Another Update for the Megadrive / Genesis Core

2018-03-25

Following the SDRAM-related improvements to the Megadrive / Genesis core that I’ve covered in my last couple of posts, here’s an updated snapshot for both the Chameleon and MIST boards:

While it’s still not perfect, the glitches should be much less noticeable, and hopefully there will no more missing platforms or missiles making games unplayable!

Updated Megadrive / Genesis core

2018-03-05

I’ve just made available an updated version of the Sega Megadrive / Genesis core for the Turbo Chameleon 64.  The only change is to the joystick handling – I’ve untangled the joystick directions and remapped the buttons slightly.

There’s still not a lot of point in using a traditional 1-button C64 joystick with this, but I’ve also fixed a bug in my previous attempt which prevented the CDTV infra-red controller from working.  This does now work, and the buttons are mapped as follows:

Play / Pause  =>  Megadrive Start
Volume Up => Megadrive A
A => Megadrive B
B => Megadrive C

I’ve mapped Volume UP to button A simply because it physically feels in the right place.   The CDTV pad isn’t super-responsive, so trying to use for serious gameplay is an exercise in frustration, but it does work, and the controllers are readily available from AmigaKit.

The new core can be found here:  fpgagen_chameleon_20180305.zip

Where did that year go?

2017-12-28

Well it’s been nearly a year since my last post, and in the break between Christmas and New Year I once again have a few spare hours to tinker with projects.  I’ve used a few of these to get the MIST Sega Genesis / Megadrive core working, at last, on the Chameleon 64.

Continue reading

Building for multiple targets

One of the challenges I’ve faced in the ZPUDemos project is keeping the various targets up to date.  When I add a peripheral to – for example – the SDBootstrap SOC, I have to modify each and every target’s project file to match, and it’s very easy to lose track of which ones have been updated and which ones haven’t.

ZPUDemos currently supports no fewer than eight different target boards, and contains eleven different projects – that’s a lot of project files!

In an attempt to make this more manageable, I’ve written some scripts to generate project files automatically, from a list of RTL files, and a board-specific template file.  I’ve taken the opportunity to clean up the whole project, too, so the directory structure is more logical. Continue reading

New home for the ZPU

It’s good to be able to report that the upstream ZPU project – and also the toolchain – has officially moved from its previous home to github, so the source for the GCC port can now be found here:  https://github.com/zylin/zpugcc\

Better yet, this repo contains the various build fixes needed to compile this old version of GCC on a modern Linux system, so much of my previous “Setting up the toolchain” post is no longer relevant, and has been updated accordingly.