quick easy question

Started by liquidlogic05, December 18, 2010, 03:54:21 PM

Previous topic - Next topic

liquidlogic05

Ok so im just starting out making codes, i recently bought a usb gecko se.

I have a simple question though. In the code documentation, i see [ba+address] a lot, or [po+address]. I understand what the BA and the PO are, but my question is concerning the " + address" part. Does that mean that once i find the BA or PO i want to modify, that i still need to add some 'address' to it?

for example, a simple code that I have already made (and has been made a billion times before) is for inf lives in super mario galaxy 2.

4A000000 80000000
04354E90 00000063
E0000000 80008000

So the first line is obviously just setting the BA to be 80000000. I read somewhere that is it good practice and polite to always set the BA or the PO before you modify it, and reset it afterwards. Which is why I have the full terminator line as well, to reset the BA and PO back to 80000000 (I think, right?, let me know if any of this is wrong)

Anyways, my question is, how come i didnt have to add this "address" to my BA after I found it? The code documentation says that the "04" code type will write the 32 bit hex value i give it (in this case 63 which = 99 in dec) to [ba+address]. So I just put my BA in there and ignored the "+ address" part and it worked.

What is this "+ address" referring to and do I have to add it to my BA values, or my PO values. How does that all work?

Also, what is the difference between 4A000000 00000000, and 42000000 00000000?

Also, does the full terminator line I used reset both the PO and BA to 80000000, or just one or the other?

Thanks in advance guys!

wiiztec

#1
The code handler already sets the base address to 80000000 also 4A sets the pointer address not the base address 42 is what sets the base address but that's basically useless since it can only be set to a multiple of 0x02000000

354E90 is the "+ address"

the only line that code needs is 04354E90 00000063
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

liquidlogic05

sweet, that helps a lot, thanks man!