+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  World Driver Championship debugger
Pages: [1]
Author Topic: World Driver Championship debugger  (Read 1 times)
Zoinkity
Guest
« on: September 13, 2011, 12:35:17 pm »

http://www.mediafire.com/file/jf4v5hgs5mric1h/NWOE-debug.zip

  The zip contains a debugger patch for the north american release of World Driver Championship (NWOE).  Each of those patches is identical, but figured this way if one was a problem or you prefer a certain format there's bound to be something of use.
  You can only apply those patches to an unbyteswapped ROM.
  To use this ROM you must have an expansion pak installed (8MB, not 4MB).  Debug data will be written to this region.
 
  Printing to screen is a bit of an issue, filling the screen with data so quickly you really can't read it at all (and occasionally locks).  So, instead, made a buffer starting at 0x80400004.  The word at 80400000 is the current size of the buffer, and when that's exceeded it resets the buffer back to 80400004.
  Strings are all NULL-terminated and stored end-to-end with this format:
0x0\t4\tcurrent COP0 Count (hex value)
0x4\tvar\tstring, NULL terminated

  The Count is included firstly so there's some idea of when each event occured but more importantly because you can then set a breakpoint with the Compare register on a subsequent run.

-Zoinkity
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC