Comment on What’s the best method for documenting a ROM that I’m reverse-engineering?
technocat@lemm.ee 2 months ago
I’m not an expert, but isn’t the goal often times to create a debug symbols file to name functions and variables? Then the next step is to provide source.
ch00f@lemmy.world 2 months ago
Yeah, I’m working on that part. It’s just messy because a lot of portions of the code can’t be confined to functions. There’s a lot of GOTO equivalents.
CanadaPlus@lemmy.sdf.org 1 month ago
Hmm. Isn’t there a theorem that every combination of GOTOs is equivalent to some structured programming equivalent?
ch00f@lemmy.world 1 month ago
Thanks for the response!
I think the issue is that the “structured programming equivalent” is just a really, really long function that’s not any easier to read.
CanadaPlus@lemmy.sdf.org 1 month ago
Ah, here we go!
Do you have any idea what the high-level language in question might be? There has to be some logic to it (or alternatively it was spaghetti code as written). Even just the era and platform would narrow it down a bit.