Lurker News

Comments (105) 25 threads

Earlier comments
FullyFunctional1 reply#
I love it. Thanks for doing this.

How long did it take you? How did you verify the memory accuracy? It sounds like you co-simulated your implementation with the emulation?

loadzero2 replies#
Yes, I ran with the original in lockstep and confirmed the same reads and writes were occurring.
loadzero#
It felt like it took forever. But about 200 hours all up, over a few months.
matsemann1 reply#
I'd like to read more about this setup!
loadzero4 replies#
Yeah, there's probably a good article or two in that.

Cliff notes:
It's basically an extension of the Dual CPU setup mentioned in http://www.gtoal.com/sbt/
In that article, Graham Toal discusses a hack where you can bootstrap a new emulator core from an existing one by making a custom emulator that drives both cores at the same time.
After each clock tick, you check the states of both processors for divergence and halt with the diff if there is one.

Continue this thread — 4 replies

jonny383#
Hats off, very cool!!!

I have always dreamed of building a classic ROM to C transpiler for native, portable, future-proof(ish) binary builds (just like this).

ianai1 reply#
Oh I really appreciate having a neat, complicated C program to explore and learn from!

Could this be done for Galaga? That’s my personal favorite.

loadzero#
Looks like someone is doing it:

https://github.com/neiderm/arcade/
Don't know if it's finished though - Galaga would be about 10 times harder to do than this project.

jonathanzufi#
This is magnificent. Thank you for doing this.

Load more comments