View Single Post
Old 06-06-12, 07:30 PM   #571
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
When you use code injection you cannot specify where the memory created will be placed. This makes it very hard to put commonly used functions in one place and call them from another place. With code injection you have code duplication because all the support functions needed for that chunk of code has to be included in that chunk of code.

With the way I have my new code setup I have commonly used functions placed in the first 0x2000 bytes of the new code sections. All the other functions fall after this 0x2000 bytes. I know the exact address of every support function (and every other function) - this means I can call a support function in SH5 from SHSim or vice versa if need be It's next to impossible to do this with code injection (it can be done but it's very messy)
I understand now. Thank you!
gap is offline   Reply With Quote