emuforge

Status

What works today, and what does not. ROADMAP.md says what comes next.

Mega Drive games run, and can be played in the app. 32X games run too, with our own replacement for its boot ROMs. A person played Knuckles' Chaotix, and said that it works. The Mega CD's hardware is there, and our own replacement for its BIOS is being made. Many games get into their intros, menus or the game with it, and others stop before they show anything (below). The lab runs games unattended, and its results are public. In its run of 9c0c0d9 (1,857 releases, 60 seconds each), the controls changed the picture in 1,378: 1,144 of 1,418 for the Mega Drive, 38 of 50 for the 32X, 193 of 380 for the Mega CD, and 3 of 9 for a Mega CD with a 32X. In 794 of these (667, 20, 105 and 2), the directions did it, and an agent saw in a small picture that it was the game. Menus, pauses and anything unclear were left out, so other games can work too. None was run to its end, so none is called playable. The app opens discs (a .cue with its files, a .chd, or a .zip with one of them). A person played Space Ace, and said that controls, savestates and everything else work.

What is ported

PartState
68000Done, apart from what is below. It was compared with the base in SingleStepTests' 317,500 cases: registers, flags, the cycles, each access to the bus in order, and the memory that a case names. They differ only in the 1,267 cases of RESET in user mode. RESET is privileged, and the base does not check that
Z80Done, apart from what is below. It was compared with the base in SingleStepTests' 1,604,000 cases: registers, flags, the cycles, all of the memory, and each access to memory and ports in order. They differ in all of the 132,000 cases of 132 opcodes, where the port follows the tests: BIT with an index, the opcodes of NEG, RETN and IM that are not documented, and two that do nothing
Mega DriveDone, apart from what is below. Compared with the base in 84 files for 3,000 frames each, with one script of buttons: the 68000's memory is the same after each of the 252,000 frames, and so is each of 50 pictures of every file, but for one in three of them (below). The files have the SVP, EEPROMs, battery memory, banks, two games in one file, and PAL. Two of them may not have run, as their memory hardly changed. What the Z80's and the video memory hold was not compared
RegionsA cartridge's region is what its header's field says, and the console's name only counts when that says nothing, which is not as in the base. When the field has several with Europe, a product code that ends with -50 makes it Europe's. Before that, 23 of 1,418 cartridges only showed that they are for another console, as Sonic 3 (Europe) did, and four showed nothing, which all run now. Caliber.50 (USA) and Andre Agassi Tennis (Europe) say Japan. A disc's is what its security code says, by hashes: 390 discs fall into three groups by it, which are their regions but for The Lawnmower Man (Europe), whose code is America's, and an aftermarket disc
CartridgesOf 1,418 retail releases, each run unattended for 60 seconds, 1,411 showed a picture and none crashed. That does not say that they can be played. Of the other seven, four were in the wrong region. Sonic & Knuckles is another chip's ROM that was first in its ZIP, which forge fixed. Phantasy Star Fukkokuban has no Mega Drive header, and why it and Outback Joey show nothing was not looked into. Some stay on one picture, such as Tiny Toon Adventures (Korea) and Buck Rogers
The appStarted, on forge's standalone. On a hidden screen, with Sonic 3, real keys were pressed and the pictures looked at: the menu, which stops the game, settings (also kept), regions (after a reset), reset and quit, a new key, full screen (with a double click too), and states, which were loaded after the app was closed. Damaged and empty slots, and a save that does not fit, say so. A person played Sonic 3 and Comix Zone in it, and said that they run well. Not tested: that the press that closes the menu is hidden, that the game follows a new key, a save made in a game, gamepads, how it sounds, speed and Wayland
SavestatesDone. One of a Mega CD game says which boot code it is from, and is refused with other code: a copy of that code is in it. So an update can make these states useless, and games' own saves stay. 8,000 damaged ones were tried: 305 were refused, and 7,695 ran without stopping the core. The tests try 600
SH-2Done, apart from what is below. Compared with the base in 65,536 programs, which start with each opcode and go on with random ones, with interrupts, DMA, the cache and the timers: the registers, each access to the bus and the cycles are the same after each of 5,835,346 steps. Four faults that were put into a copy were all found. Both can be wrong in the same way, as no other tests of it were used
32XDone, apart from what is below. Compared with the base in 25 games (24 of them as they are, and Stellar Assault as an American console) for 3,000 frames each, with one script of buttons, and the same boot code in both: the 68000's memory and all of the 32X's SDRAM are the same after each of the 75,000 frames, and so is each of 50 pictures of every game. A changed bit in SDRAM was found. All 25 show pictures of the game, and 84 Mega Drive files have the same results as before. The PWM sound was not compared
The 32X's boot codeOur own, and done as far as these games need it (crates/mdemu-core/src/s32x/boot.rs says what it rests on). As the base has it too in the comparison, that cannot find what is wrong with it: the pictures were looked at for that
Mega CDIts hardware is there, apart from what is below. Compared with the base without a BIOS: the same random use of both, with a disc that was made for it and with Space Ace, in 200 runs (140,000 steps, for about 930 seconds of a disc). Programs of the sub CPU use the drive, the decoder and its DMA, the graphics chip, PCM, timers, interrupts and memory. All of the memory, the registers that the console sees, and each sample of the disc's music and of PCM are the same, with the two differences below made as in the base. Six faults in six parts were each put into a copy, and all were found. Two of them, in the music's volume and in how soon the drive plays, were each found in only one run of 24

Open in the 68000, which is the same as the base in these:

  • LINK A7: 326 cases expect another value on the stack. In the one that was looked at, it is the stack pointer from before the instruction, and the base has the one after it goes down. The tests are from another emulator, so a hardware test has to decide.
  • STOP (1,230 cases, as many as are in supervisor mode) and CHK (107 cases, and 199 more where only the cycles differ) were not looked into.
  • Address errors: 55,606 cases end in one. The port is the same as the base in them, and neither was compared with what those cases expect.

Open in the Z80. No case is wrong in anything but the flags, or in its cycles:

  • The flags' two bits without a name (bits 3 and 5) are not emulated, as in the base. In 538,106 cases, they are all that is wrong.
  • The other flags are wrong in 7,880 cases, all of block input and output (INI, OUTI and the six like them). The Mega Drive has nothing on the Z80's ports.
  • Interrupt mode 2 is treated as mode 1, as in the base. The cases have no interrupts.

Open in the SH-2:

  • Three things stop the base, and do not stop mdemu: DMA registers at an address that is not a multiple of four (they read as 0, and writes do nothing), DMA with a single address (it does nothing), and dividing the lowest number by -1 (the highest number, and the overflow flag, as for other quotients that do not fit). The first two were seen to stop the base in those programs, and the third was read in its code.
  • Not emulated, as in the base: the free-running timer (its registers can be written), the watchdog as more than a timer, SLEEP's low power, interrupts of the division unit, and address errors.

Where the 32X is not as in the base, or not done:

  • Its boot code is ours, and how long it takes is not what a console's takes. It copies the checksum from the cartridge's header, and does not add the cartridge up, so one with a wrong checksum can start. 14 files of a set have one, with BC Racers (USA) and FIFA Soccer 96 (Europe) among them. The code that real consoles look for in a cartridge is not looked for.
  • Reset: in 25 games, it was pressed after 5, 40, 400 and 900 frames. In 99 of those 100, the game came back. Knuckles' Chaotix did not after 40, and why is not known.
  • Games are not recognised. The base has Stellar Assault on a list, as an American game. Its cartridge says Europe, which is what mdemu does without a setting.
  • Which cartridges are for a 32X is read from the cartridge. In a set of 365 files, 4 are not found. They are prototypes and betas: two of ClayFighter 2, and two of Star Wars Arcade whose bytes are in another order. None of 4,199 Mega Drive files is taken for one.
  • Turning off a transfer through the FIFO makes both sides start again. In the base, one that was stopped in the middle of a half puts the next one out of step. ares empties all of its queue. It was not tested on a console. In 13 runs of 9 releases, no transfer was stopped like that. Only the state of Knuckles' Chaotix changed, which has these places in it.
  • PWM sound is the mean of what the chip puts out over the time of each of the mixer's samples. The base filters and resamples it. Its volume is the base's number, and how loud it is was not measured. Nobody has listened to it.
  • A picture with the console in H32 is 1,293 dots wide, as in the base, so that no dot is blended. The app gives it its own shape. It was not looked at there.
  • States of 25 games went on the same for 200 frames: the pictures, the sound and both memories. 10,000 damaged ones were tried, and none stopped the core. A state has 1.6 MB in Chaotix.
  • Not there: the base's setting for the SH-2s' clock. As in the base, an SH-2 does not wait while something else uses the bus, and what it reads where nothing is, is an estimate.

Where the Mega CD's BIOS is not done. crates/mdemu-core/src/mega_cd/boot.rs says what is known, and how:

  • Space Ace (USA) was run with it for up to 6,000 frames, and its pictures were looked at: its logos, title and intro (491 different pictures, and then it starts again), and then, with Start, its menu and the first scene, the one after a life is lost, and "Lives 4" and "Lives 3". A press of Start pauses it, and another one goes on. No move was pressed in that run. A person then played it in the app, and said that controls, savestates and everything else work. It was not compared with the base. The app ran its first 1,000 frames on a hidden screen, from a .cue and from a .chd: it has the same id from both, and the one picture that was taken from each is the same.

  • 36 games were run for 3,000 frames each, with one script of buttons. 28 showed more than 100 different pictures, which says little by itself. Pictures of 28 games were looked at, some from an earlier run. These got into the game: Sonic CD (USA), Batman Returns, Eternal Champions, Robo Aleste, Time Gal, Cobra Command, Sol-Feace, Devastator, Snatcher, Ecco the Dolphin, Mickey Mania, Dragon's Lair, Earthworm Jim, Night Trap, Space Ace and Shining Force CD (in a run with its own script). Sonic CD (Japan) got to its first level, where it may have been paused. Sewer Shark, Android Assault, Wonder Dog, Yumimi Mix, Road Avenger, Heart of the Alien, Vay and Lunar: Eternal Blue showed intros, titles or menus. In a longer run, Keio Flying Squadron got into the game and Aisle Lord showed a long intro. Aisle Lord ends with a black screen, and why is not known. Keio showed its menu, a scene and the game in a later run. Its opening video was not looked at again. Silpheed said "READ ERROR" in its first stage, and does not in 9,000 frames now, up to that stage's results. SoulStar gets into the game, where the script paused it. 8 games showed 100 pictures or fewer, and most of those nothing. (A later run had 27 above 100: Popful Mail and Heart of the Alien had fewer, and Keio more. With only Start pressed, Heart of the Alien showed its long intro.) Only Space Ace is known to have been played by a person who then said how it was, and the music has not been judged.

  • Saves: Shining Force CD said that it needs 100 free blocks, which a person found. It now starts, and in runs with scripts, a new game was saved, and it went on from that save after the console was off. It says that books are missing before its menu, and why is not known. Saves from other emulators and consoles cannot be used.

  • 250 games, one version of each title in a set, without demos, prototypes and unlicensed discs, were run for 2,000 frames each with the same buttons. All of them start. 145 show more than 100 different pictures, 48 show 11 to 100, 51 show 10 or fewer, and 6 stop with an exception. Except for those that are named above, their pictures were not looked at. Games that stop early often use calls of the console's that do nothing yet. In a run of 9,000 frames, Jurassic Park and Earnest Evans got into the game, and The Adventures of Willy Beamish showed its title and credits. In one of 3,000, RDF got into the game and Mansion of Hidden Souls into its house. Popful Mail (USA and Japan) got into the game in one of 4,000, once the BIOS said that the memory for saves is formatted. Arcus, Burai, Formula One, Heavy Nova, Nostalgia 1907 and Black Hole Assault were black before the BIOS sent their colours, and show titles, logos or other pictures now. In later runs of some of the games, four of Koei's (Aoki Ookami, Nobunaga, Sangokushi III and Winning Post) and 3 Ninjas Kick Back went on from a black picture, and so did Dynamic Country Club and Egawa Suguru no Super League CD. Arcus now goes on to its opening with music, and Fresh Cleaner to its title. Pictures of these nine games were looked at: they show openings, menus and players to choose from. A red block in one of Koei's logos may be wrong. In all regional versions that were compared, what failed in one failed in the others in the same way, but for the CD 32X versions, which the next point is about. With no buttons pressed, Lunar: The Silver Star shows its opening. It has no sound there, and why is not known.

  • The Mega CD with the 32X: a disc whose header says that it is for a 32X has one. Seven of the nine such releases do, and all seven show their films or other pictures, with sound, in 1,500 frames. Night Trap then stopped after its first pictures, and goes on now (below). Slam City (USA) and Surgical Strike (Brazil) do not say it, so they only have a 32X with the setting "32X with discs" at "Always". Without it, Slam City says that a 32X is needed. With it, all four of its discs (USA) show their films and get to their menus in 3,000 frames without buttons, and were not played. Surgical Strike (Brazil) is black with it too, and why is not known. With a 32X, Surgical Strike (Europe) asks for disc 2 to be inserted for the 32X, and this could be that disc. mdemu cannot change discs yet. It was not compared with the base, and how the SH-2s start the game is in part a guess (s32x/boot.rs).

  • What games call: when the start of 566 discs was run for 300 frames, with a BIOS that did nothing, they called $5F22 with 20 numbers, and games use more later. Music from discs is there. Saves are, in the console's own memory and not in the cartridge, and parts of the drive's state are.

  • The console's side has the start, its interrupts, and more of its calls: the pads, waiting for a picture, drawing, colours, and what the two CPUs send each other. 278 of the 566 discs stop in or call the BIOS's place in those 300 frames, 144 of them in the security code. The other calls come back at once.

  • Guesses: they are named there. A test with programs for both processors has what was seen, and some of the guesses. 156 planted faults were found at first, 21 of them in saves, and one by another test, which looks at where our code is.

  • 89 releases that showed at most three scenes in the first published results, or stopped, were looked into (each result is of mdemu deacbad304df). Four things in our BIOS held games back, and boot.rs says how each was found: $96 ended reads, the second byte of $81's state was always 0, $308 did not set the bit that games look at, and $344 did not take turns with the sub CPU. In runs of 2,500 frames with one script of buttons, pictures were looked at. These got into the game: Cadillacs and Dinosaurs (which the script paused), Ground Zero Texas (USA), Night Trap's American CD 32X disc, and Sing!!. Championship Soccer '94 and Dungeon Master II show a menu or a title. Loadstar shows its menu and film, and Black Hole Assault and Fresh Cleaner more of their openings. Sensible Soccer, Ground Zero Texas (Europe) and the other Night Trap discs show many more pictures than before, and those were not looked at. Quiz Scramble Special shows its first logo and then scrambled graphics, which is wrong. Formula One and Alshark wait at their titles for a button, as they should. In an earlier run, Dungeon Master II said that it could not write to the memory for saves, and why is not known: it does not use our calls for that. The change to $344 by itself changed no game. Of 207 discs (a random sample, and the games that the changes affect), none became black. The Terminator now stops with an exception, where it was black before. Nobody had played any of these then, and since then only The Terminator is known to have been played, with a later version. What stops the others that show nothing is open.

  • More of these releases run after five further changes, which boot.rs explains: the state after $18, the console's program at $FFFF0000, a sub CPU's program from the start of its sector, $364's time on a Japanese console, and a little time before the game's level 2. In runs of 2,500 frames, Battle Fantasy, both versions of Third World War, Revengers of Vengeance, Cobra (both versions), Daihoushinden, Jangou World Cup and Wakusei Woodstock show many pictures, where they showed one before. Pictures of the last three were looked at: Daihoushinden and Wakusei ask for a name, and Jangou shows its menu. The Terminator does not stop any more, and is still black. Of 220 discs from all regions, none became black. Two of these choices are our own, as boot.rs says. Links reads sectors with nothing in them, and why is not known. Muhammad Ali Heavyweight Boxing (Europe), a cartridge, says in its header that it is American, so it needs the region setting.

  • The newest changes are from games that showed nothing. How the BIOS was made has them, what each rests on, and which choices are our own. All 419 discs of the set were run for 2,500 frames with the BIOS from before and the new one: 371 and then 406 show more than 10 different pictures, and 51 are better. 6 were flagged as worse: The Terminator (2), and four whose pictures show that nothing that worked is broken. Runs of a few games had not found that: AX-101, Lunar: The Silver Star and Cosmic Fantasy Stories were each black with a version that had been right for the games it was made for. Pictures were looked at of some. These got into the game: Lords of Thunder, Spider-Man vs. The Kingpin, both Lethal Enforcers, Arslan Senki, and Streets of Rage and what looks like Golden Axe on the Sega Classics discs. Final Fight shows fights, which can be its demo. Formula One, Heavenly Symphony, Novastorm, Psychic Detective, Ranma 1/2, Alshark, Tenkafubu, Death Bringer and F1 Circus show titles, menus, films or stories. Still wrong: the menu of the Sega Classics discs and Ishii Hisaichi no Daiseikai are scrambled, Switch shows only a logo in the lab. The Terminator (2) stopped after its menu, and gets into its first level now. Microcosm (3) showed nothing, and shows its logo and film now. The Ninja Warriors was black after its title without buttons, and goes on to its story and scores now. With buttons, it gets into its first stage. These are from the work of 2026-12-01. A person played all three games, and said that they run and sound great. Which releases and how far were not said, so none is called playable. The published results do not have it yet. Dungeon Master II shows the same screens about five seconds later than before. A player found that Lunar: The Silver Star had no sound and stopped at its first scene. In runs of 12,000 frames with a script, the USA and Japanese releases now have music, get past it, and a scripted walk starts the next scene. Wing Commander has music too. Both releases of Pitfall show pictures, and Radical Rex and Burai do not stop in these runs. Games are told that there is no cartridge for saves. Links, Dark Wizard (Japan), Dragon's Lair (Japan), Flashback and WonderMega show nothing or almost nothing. An interrupt for the sub CPU is dropped while that CPU has it off, and this rests on one game (Arslan Senki) and ares, not on a test of the hardware. 212 planted faults are found. A person played Lunar: The Silver Star with this BIOS, and said that it plays and that the audio is solid. Which release, how far, and whether saves work were not said. But for the three of 2026-12-01 above, nobody has said that they played the others with our BIOS since then. In the lab (389 releases, 60 seconds each), 380 show a picture and 336 did before. None lost its picture. Panic! and Flashback get into the game there, and Dragon's Lair (Japan) does in 120 seconds. Quiz Scramble, Egawa Suguru, Pro Yakyuu Super League, Dune (2) and Dynamic Country Club are scrambled too. The results list what is known to be wrong with each game.

Where the Mega CD's hardware is not as in the base, or not done:

  • A short seek is never before the disc. In the base, the place of the drive during one can go round from the start to near 80 minutes. Another seek then takes more than a second, and not a tenth of one, and music starts late.
  • A time that cannot be is refused. A digit of a command to the drive can have eight bits. In the base, a number that is too large goes round and can be a time. What a drive does is not known, and neither is whether it has only four bits of each digit.
  • Other commands that stop the base do not stop mdemu: where track 0 starts, and places after 80 minutes. They were read in its code.
  • When the drive is told to go on while it seeks, it plays when it is there, as in ares. In the base, the command does nothing, and after a seek that ends in a pause, the drive stays paused. Final Fight CD goes to its intro's music and has it go on before the drive is there. The intro follows the music's time, so it stayed black when no button was pressed. It was not tested on a console. When the drive is told to pause while it seeks, it pauses where it is, as in the base. ares pauses when it is there. Which is right was not looked into.
  • The last sector of music before data is heard, as in ares. In the base, it is silent. It was not compared with a console. The bit that says that music plays is as in the base.
  • The music's volume is the whole value that is written to its register, as in the base. Whether that is right was not looked into.
  • After the last track, the drive goes on for two seconds, as in the base. That was not compared with a console.
  • Games are not recognised. The base has another region for The Smurfs and Snatcher than their headers say. Here, the security code of a disc says it, and a setting can change it.
  • Sound: music and PCM are brought to the mixer's rate with a curve through four samples, and the base does that in another way. Their volumes and PCM's filter are the base's numbers. The mix was not compared, and nobody has listened to it.
  • Not there: changing the disc, a cartridge with a disc, a 32X for a disc that does not say that it needs one, and subcode.

Where the Mega Drive is not as in the base, or not done:

  • DIVS of $80000000 by -1 is an overflow, as any other result that does not fit. It stops the base. The base also takes the absolute value of $80000000 as a negative number, and so finds some overflows late. Here it has no sign, so they are found early, in 18 cycles and the time for the address. It was not tested on a console.
  • Games are not recognised. The base has lists of games for the region, and for those that need a controller with three buttons. Here, settings choose both. It also skips a wait in the SVP's program for Virtua Racing. Without that, the game takes more time, and one picture of 50 differs in three of its versions. Putting it back in a copy made the American one the same.
  • Sound is mixed at the YM2612's own rate, about 53,267 samples a second on an NTSC console, and not resampled as in the base. So it is not the same, sample for sample. In five games of 50 to 60 seconds, brought to the base's rate, it is as loud (within 0.1 %), and stays in time in all but one piece. Each game has 70 to 89 pieces of half a second, whose median correlation with the base is from 0.967 to 0.996, and the lowest is 0.79. What makes the lower ones was not looked into.
  • V30 on NTSC: a picture is complete after its 240 lines. In the base, that is at line 232, so the last 8 rows are from the frame before. In 88 runs of 67 games, only The Amazing Spider-Man: Web of Fire (32X) uses this, in 56 frames when it starts. Its picture is the same in each of them. Its memory and sound at the end of these frames are not, as they end later.
  • The window in the second interlaced mode has the same height on the screen as in the others, as in ares. In the base, it has half of that. It was not tested on a console, and not in a game.
  • Memory that only a checksum says is there is found in each format of a file. The base takes the checksum of the file as it is, and only finds it in a plain one.
  • An instruction that the SVP's documentation does not have does nothing. It stops the base. What the chip does is not known.
  • The YM2612 answers at each of its addresses as a YM3438 does, as in the base.
  • The wait for the YM2612: the base brings it up to date after each instruction, and mdemu at each access and at the end of a frame. Each access sees the same time as before.
  • Not there: mice, adapters for more players (and J-Carts), light guns and other devices, and cartridges that lock onto another file.
  • The time of the 68000's accesses within an instruction is not emulated, as in the base. Some timing rests on estimates, which the code says.

Commandments not kept yet

What every core has to have, and what is missing here. Take a row out when a test shows that it is kept.

Missing
1, 2emuforge's interface. libretro is a second library beside the program (apps/mdemu-libretro), and not the same file; forge's wrapping for one file is not there yet
3the app and libretro are its modes. --core is forge's app's, and was not tried with a game here. There is no C API
4the shared button mapping. One mapping is used for all games and gamepads, and both players have the same
5rewind, and the interface to settings for front ends
6tests of the app's saves and states with many games
8a standard for its speed, and measuring it
9movies and live sessions in the lab (apps/mdemu-lab), which runs games unattended, the public record of what games do, and the rest of the app's tests

From commit 1fd712ad794d. Edit this page