A long time ago, I've made some games for the Commodore Amiga. All done in 68000 assembly (So I still have the sources)
I want to port these games to modern platforms, and instead of hosting an emulator, I thought of converting the Assembly to C, and adding an SDL layer.
Any thoughts on how to tackle the 68000 -> C conversion part? (Not manually but automatically. As in a transpiler)
I was thinking of just creating a bunch of variables with similar names as the registers and then converting things like this:
MOVE.l #23, d7
into
MOVEL(23, d7);
The only thing I'm not sure how it would work is branches and subroutines. I think I could get it working with a very big switch statement, and having any label I could potentially jump to being a case statement.
Any thoughts? Any prior art I could draw inspiration from?