Dan Salvato
IE
For what it's worth, this can be nicely done using Gecko instructions rather than relying on ASM. See the "Gecko Register" section of this page: http://geckocodes.org/index.php?arsenal=1I'm currently working on taking a value in one address and putting it into another (programmatically). But I'm wondering, would this be possible using purely a Gecko code? It'd be nice if I could also do some math on it before putting it into the new address.
(If their syntax is confusing, anything surrounded by brackets means that it's not using that value itself, but the value stored at that pointer.)
Say we want to load the value stored in 0x805a7d00, multiply it by 3, and store it in 0x805a7d10
Code:
82200000 805a7d00 #load value at 0x805a7d00 into gr0
86100000 00000003 #multiply gr0 by 3
84200000 805a7d10 #store gr0 to 0x805a7d10
This can probably be cut down to 2 lines of code by loading gr0 with the pointer and using 86T1 instead of 86T0 for the second line, but I'm not confident enough to be certain that it will work. My point is that oftentimes, Gecko's code system can often save effort when used instead of, or in combination with, ASM injection.