211 points · by adamdegas · 3y ago · 42 comments
So not simply recreated, it's a 100% accurate replica of the original game. Crazy.
What, by the way, was the original SNES "OS" written in?
EDIT: While downvoted, it is likely true. ChatGPT + Github Copilot are amazing at translating code between languages, especially from minimized code or inferring TypeScript typings from JavaScript.
Also, keep in mind that translating between source code in two languages is fairly easy, while translating machine code to a compilable language is very hard. It requires knowledge of the machine itself which may or may not exist. Maybe ChatGPT knows enough about SNES to do this? Probably not.
Setting a register to some magic constant and then pushing it to some unknown address will do SOMETHING in the computer but you don't know what or why. It's honestly really messy.
The source code of the SNES Doom port was open sourced if you wanna take a look: https://github.com/RandalLinden/DOOM-FX
For example, how do they ensure that the stack layout matches the SNES, the right mix of variables in registers vs in memory, and so on?
What they are saying is that they can run their own C code along side the original assembly inside their own virtual SNES and compare the memory and register state after each operation. They aren't saying their code checks against a physical SNES. They are saying the virtual system state after running their C code in their virtual SNES matches the state after the original ASM code runs in their virtual SNES.
None of this is to minimize the work. It is a crazy difficult/obsessive project to pull off.
https://arstechnica.com/gaming/2021/11/reverse-engineering-t...
Which cites and is modeled on MathOnNapkins's disassembly of the US version: https://www.zeldix.net/t143-disassembly-zelda-docs, https://www.romhacking.net/forum/index.php?topic=13592.0
Oot seems to be clear it's decompiled the ROM and can deterministically make a ROM that runs on the hardware and emulator.
I thought it was a modern reimplementation but it seems to use parts of a SNES emulator.
And seems to run standalone but with parts of SNES hardware there too... Perhaps that made reusing assets easier than converting them. And translating graphics easier to.
Asking for a speedrunning friend.
If RISC-V is a success, write RISC-V assembly once, run everywhere.
https://en.wikipedia.org/wiki/Java_processor
;)