View Single Post
  #980    
Old September 5th, 2011, 05:24 AM
Sawakita's Avatar
Sawakita
Not Invented Here
 
Join Date: May 2010
Gender: Male
Quote:
Originally Posted by IIMarckus View Post
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 |