Quote:
Originally Posted by TheDarkWraith
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!