Page 1 of 2
Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 12:28 pm
by limi
After purchasing the A500 Mini console the other day (it was on sale, it’s adorable, and runs CD32 games), I was reminded that we still don’t have CD32 compatibility in the Amiga (Minimig) core, and that there are quite a few games on that platform that should be preserved and made accessible on the MiSTer.
For context, the Amiga CD32 is essentially a superset of the Amiga 1200 with the AGA chipset that added CD Audio support and a chip called “Akiko” that was handling the CD-ROM, as well as some “chunky to planar” operations to make it easier to make 3D games on the console.
Without commenting on the feasibility and complexity of completely supporting everything that the CD32 is theoretically capable of, I think we could be very close to having rudimentary support for it in MiSTer.
Here’s a summary of the current state:
What would be necessary to get CD32 support on MiSTer?
- A developer would have to port the CDDA support from MiST to the MiSTer. I believe (but have not verified it personally yet) that mounting an ISO file as a drive is already supported.
- A “boot disk” that includes
IDEFix97
and CD32-Emulator
would have to be created.
- A separate MGL setup for
Amiga CD32
would be a nice addition.
On behalf of the AmigaVision team, I can sign up for the IDEFix97 and MGL work, and I’m also happy to assist any developer that is willing to attempt porting MiST’s CDDA functionality to MiSTer with both testing and answering questions about the Amiga generally.
I believe we have a few developers here that are quite familiar with the Minimig code base on MiST and MiSter, and we successfully managed to add RTG support to the Amiga a while back by working together.
Do note that this isn’t the full CD32 implementation, but it should be capable of running a fair amount of the available games, including (but not limited to):
- Bubba and Stix CD32
- Bubble Heroes
- Chaos Engine CD32
- Disposable Hero CD32
- Fightin’ Spirit CD32
- Flink CD32
- Land Of Genesis
- Kid Chaos CD32
- Litil Divil CD32
- Napalm: The Crimson Crisis
- Pinball Illusions CD32
- Pirates Gold CD32
- Road Avenger
- Shadow Fighter CD32
- Soccer Kid CD32
- Super Street Fighter 2 Turbo CD32
- Super Methane Bros CD32
- Time Gal
- Top Gear CD32
- Trauma Zer0
- Zool CD32
Anyone up for taking a look? :)
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 1:33 pm
by Moondandy
I know Jason was trying to do this awhile back, and hit issues as apparently parts, including the i/o was hardcoded into the main c code. It sounded like the core would need a serious refactor before the MiST support could be ported over, or CDTV/CD32 support could be added.
My understanding is it would need someone like Sorg to go back and do some serious work under the hood on the core.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 1:59 pm
by limi
Indeed, I’m not saying it will be easy, just that there’s a base to start from, and that we don’t necessarily need a full CD32 core to make most games work.
It’s still going to be a non-trivial amount of work to make it happen, of course.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 3:52 pm
by di3sel
I cant help coding in any way but I have been running CD32 games on the current Amiga core for ages. I only have 2 game isos Microcosm & Simon the Sorcerer running from the hdf via a boot disk adf file. Both play flawlessly. It actually is just one boot disk for all games, you just need to change the .iso name and loacation on the hdf.
If this boot file .adf would be useful to anyone please let me know and i`ll happily upload it somewhere.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 7:47 pm
by limi
It doesn’t play the CDDA audio though, does it? That’s the point of this improvement — pretty much all CD32 games work on the A1200 in some form (usually they have AGA versions), but they are missing the CD audio.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 9:42 pm
by di3sel
Ah get ya, would love to see a cd32 core come to light eventually...
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Mon Jul 31, 2023 11:33 pm
by limi
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 7:54 am
by Caldor
I have long hoped to see this happen, but yeah, apparently it will require quite a big rework of how the core is currently designed.
I have focused on how to get CDTV and CD32 working through emulation (Amiga emulation on the MiSTer Minimig core) but no solution supports reading CD audio. Would require a lot of extra work if CD audio was to be read from files it seems like.
How CD support works now is a bit of a hack from what I understand, a simple way to get it to work. I suspect it was inspired by the hack where you could convert a CD image to an HDF file and run CD based games that way. Given how you now have to change CD0 from CD.Device to SCSI.Device it seems what we have now is probably not that different from converting a CD image to a HDF file.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 9:22 am
by JasonA
I made a few attempts to add CDDA earlier this year. The IDE implementation in MiSTer is a bit different from MiST. I converted some of the MiST chips to MiSTer format, but due to time constraints, wasnt able to finish it off. Im not sure if the chip conversion is the correct way, or simply instead to add the CDDA parts from MiST into the MiSTer code, using the chips we have there.
I was thinking that the CD control from Akiko might not be necessary either, as we already have most of what we need elsewhere in the MiSTer codebase.
There might need to be some work done on getting extension roms into the memory, but as the OSD for Minimig is coded more in main, it will require a bit of work there.
I would be happy to make an attempt again, if some people would like to join me on the work. Doesnt have to be core devs, can be anyone really.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 2:07 pm
by LamerDeluxe
JasonA wrote: ↑Tue Aug 15, 2023 9:22 am
I made a few attempts to add CDDA earlier this year. The IDE implementation in MiSTer is a bit different from MiST. I converted some of the MiST chips to MiSTer format, but due to time constraints, wasnt able to finish it off. Im not sure if the chip conversion is the correct way, or simply instead to add the CDDA parts from MiST into the MiSTer code, using the chips we have there.
I was thinking that the CD control from Akiko might not be necessary either, as we already have most of what we need elsewhere in the MiSTer codebase.
There might need to be some work done on getting extension roms into the memory, but as the OSD for Minimig is coded more in main, it will require a bit of work there.
I would be happy to make an attempt again, if some people would like to join me on the work. Doesnt have to be core devs, can be anyone really.
The PSX core should support CDDA, so maybe that could be used as a source of information. I don't know how support for that is implemented in main.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 4:38 pm
by zakk4223
I have this basically done, I just have to fix one or two minor bugs I just noticed and then send the PR. Probably today
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 4:49 pm
by limi
Let me know if you need help testing an RBF and/or Main build.
Will it support CHD, like the other CD cores?
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 5:28 pm
by FoxbatStargazer
Remember someone complaining about lack of CD Amiga support as evidence of "bias" and I pointed out that Neo-Geo also lacked CD support. Well we recently got NGCD support and it looks like Amiga is following in short order! Love to all the great devs contributing to this platform!
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 7:41 pm
by wark91
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Tue Aug 15, 2023 8:02 pm
by Moondandy
Oh wow, so what is still needed to get CDTV to work now there is CDDA?
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Wed Aug 16, 2023 9:53 am
by JasonA
Cheers for the heads up!
zakk: if you have any expertise with main, could you add another OSD option to load an extended rom? CD32 has one I believe. Would be good to keep them separate and load correctly into mem, still allowing the A1000 roms to work correctly in the memory map.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Wed Aug 16, 2023 4:09 pm
by limi
Wanted to start help testing this, but after getting the nightly main build + the nightly Amiga build, installing IDEFix97 and trying to mount a variety of CD formats, I can't get anything to show up.
If anyone knows how it's supposed to work (I know it's still a work in progress , I'm all ears.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Thu Aug 17, 2023 10:11 pm
by rsn8887
limi wrote: ↑Wed Aug 16, 2023 4:09 pm
Wanted to start help testing this, but after getting the nightly main build + the nightly Amiga build, installing IDEFix97 and trying to mount a variety of CD formats, I can't get anything to show up.
If anyone knows how it's supposed to work (I know it's still a work in progress , I'm all ears.
I just got the Idefix97 CD32 Emulator boot disk to work with Banshee.cue and it seems to play cd audio in the title sequence. The funny thing is: Banshee works, but Brian the Lion seems to become unresponsive on the title screen, so it is maybe not perfect yet, no clue.
I sent a PM to you with more details.
EDIT: If you just install IDEFIX on your normal workbench, I think you need to insert the CD into the secondary master IDE Device and also open a shell and type mount cd0: before the CD Rom contents show up on Workbench. At least that's how it is for me. On the CD32 emulator boot disk adf floppy, I was able to manually edit the Devs/Dosdrivers/CD0 text file to change the scsi device number from 2 to 0 to make it work via primary master instead of secondary master.
EDIT2: If anyone knows how to get in game on Brian The Lion CD32, please tell
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 12:45 am
by rsn8887
Some games seem to require special settings on the IDEFIX97 CD32 emulator boot disk window.
Special settings:
Chaos Engine CD32 (CDD3445 version tested) needs the "No FastMem" checkmark, otherwise there's no picture
Working seemingly out of the box:
Banshee
Arcade Pool
Speedball 2
Microcosm (is the video speed in 1st level correct?)
... probably many more.
Couldn't get to work at all:
Brian the Lion (whole MiSTer becomes unresponsive on title screen)
Cannon Fodder (hangs with "accessing CD 32" message).
Note that for the emulator to run, a A1200 config with some fastmem is best. The emulator can use the fastmem for its own code, so it doesn't eat into the chipmem the games might need.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 2:25 am
by limi
Success! Thanks for the pointers, rsn8887!
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 3:02 am
by bbond007
Good work!
Wonder if it works with Kang Fu...
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 4:32 am
by FoxbatStargazer
Wonder if we're going to get the madness of an AmigaVision rigged up to emulate most of the CD library now on an A1200. Alternatively maybe a little more core work can get us booting ISOs and such.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 8:41 am
by Caldor
Anyone had much luck with this? I have long tried running CDTV and CD32 games on the Minimig core. I have made several special bootdisks, but overall the best solution I have found is SimCD32, which is an official CD32 emulator as far as I know, released by Commodore on an Amiga Developers CD to help develop games for the CD32. But it does not support CD audio, does not support physical CDs at all, its designed to be used with an emulated CD drive that mounts an iso image.
I have tried SquirrelCD32 and Idefix, and I have gotten some games to run with Idefix. I think the one that worked the best was Robocod CD32, so far at least. Microcosm crashes. Simon the Sorcerer does not have CD audio but it shows how Idefix seems to slow the system a bit much because all the audio lacks a bit much.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Fri Aug 18, 2023 9:16 pm
by rsn8887
Caldor wrote: ↑Fri Aug 18, 2023 8:41 am
Anyone had much luck with this? (...)
Yes, the Idefix97 CD32 Emulator boot disk works great for me. Microcosm works, and many other games. I am slowly going through the collection. Most games seem to work fine.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 8:02 am
by Caldor
rsn8887 wrote: ↑Fri Aug 18, 2023 9:16 pm
Caldor wrote: ↑Fri Aug 18, 2023 8:41 am
Anyone had much luck with this? (...)
Yes, the Idefix97 CD32 Emulator boot disk works great for me. Microcosm works, and many other games. I am slowly going through the collection. Most games seem to work fine.
Is this your video maybe?
https://www.youtube.com/watch?v=_sfAyo2M9r8
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 3:20 pm
by rsn8887
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 3:28 pm
by Hyper Space Squid
Would anyone be able to share the Idefix97 CD32 Emulator boot disk with me? or at least give me detailed instructions on how to make one? I have zero idea what i'm doing but really want to test out the amiga cd32 compatibility.
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 5:12 pm
by FPGA64
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 8:16 pm
by rsn8887
Update on some games testing:
Kid Chaos runs great and has CD AUdio and more colors than non-CD32 version!
CD32 version:
- 20230819_135838-screen.png (555.96 KiB) Viewed 18208 times
Normal version:
- 20230819_140132-screen.png (582.12 KiB) Viewed 18208 times
Guardian needs No Volume Control
Soccer Kid needs No Fast Mem
Dragonstone needs No Fast Mem
Re: Let’s Make Amiga CD32 Support Happen (Update: It Works!)
Posted: Sat Aug 19, 2023 8:40 pm
by Caldor
rsn8887 wrote: ↑Sat Aug 19, 2023 3:20 pm
No. I sent you a PM.
Works very well I tried several games. Microcosm and Speedball 2 runs perfect it seems. But also CDTV games seems to run. Lemmings and Defender of the Crown. DotC sadly did not have CD audio working. I hope that can be fixed somehow.