Comment on What’s the best method for documenting a ROM that I’m reverse-engineering?
ch00f@lemmy.world 2 months agoYeah, 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.
ch00f@lemmy.world 1 month ago
Yeah, it was a budget portable device released in 1995 running a processor from 1984. I think it was just written in straight assembly. I’ve even found some unreachable code snippets in the assembly that print debug messages which confirm that theory.