ROM Hacking Discussions
View Single Post
September 5th, 2011, 05:24 AM
Not Invented Here
Join Date: May 2010
Originally Posted by
Of course, it would be impossible to get things perfect. But here are some ideas:
Nothing has to be disassembled in order; precede each line with its address so you can sort it later. (Better idea: precede it with address × 2. Then you can precede labels with address × 2 − 1.
Keep around a boolean true/false for each value in memory, so you don’t get in an infinite loop.
Here’s an example of properly labeling things: when you encounter loads to a and hl, put them in a queue before printing them out. If they’re followed by a call to $35CD, replace the constants with the appropriate labels and BANK() macros, then flush the queue.
These are some enlightening advices, thank you. I'll try to follow them when I'll get around starting that project.
I'm not sure I understood right the thing about putting [address x 2], though. Could you clarify it a bit?
1st Gen Hacking: Useful Links
A good example of REAL ROM Hacking
View Public Profile
Send a private message to Sawakita
Find all posts by Sawakita
Find threads started by Sawakita
Ignore Posts by Sawakita