Jump to content
  • 0

Inserting code to code.zasm?


Airikita
 Share

Question

Well, maybe not adding code, but is there a space in code.zdata to put in some code of my own doing? I heard there are some unused debug functions/protocols not used, so I guess it would be possible to stick some code in there somewhere?I'm using the OOT debug rom, so where would I find the unused code to replace?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Petrie911: http://glitchkill.proboards.com/index.cgi?action=gotopost&board=ootmod&thread=2568&post=41198

 


I've found a rather useful place to insert short codes. Since it doesn't use spinout's hook, it works in PJ64 and Mupen64.

The space between 0x00018F30 and 0x00019030 is completely blank, but always loaded into memory in the exact same spot (0x8001CD60). Code inserted here runs fine, though you need to fix the checksum after changing things.

If you haven't already noticed, this blank space is at the end of the main file table. Doesn't seem to hurt anything, though.

 

You can find some more things on free space on that last few pages of this topic: http://glitchkill.proboards.com/index.cgi?board=ootmod&action=display&thread=2568

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.