XOR Checksum for F2 codestypes

Started by Bully@Wiiplaza, August 26, 2011, 02:57:47 PM

Previous topic - Next topic

Bully@Wiiplaza

I´d like to know, which values I need to calculate for my XOR checksum.

F2______ YYZZZZNN
ZZZZZZZZ ZZZZZZZZ
ZZZZZZZZ ZZZZZZZZ
ZZZZZZZZ 00000000

_______ = is my address to hook
YY         = 16bit values XOR´ed together (2x 16bit would mean that I´ll e.g. XOR together the first & second 16bits of my hook?)
ZZZZ     = result (if true, execute code) -> but isn´t my result already stored at YY? Is ZZZZ a XOR´ed result or a normal 16bit value?

Here´s an example:

bit      1 2 3 4 5 6 7 8    //memory locations
value A  0 0 1 0 1 1 0 1    //how 45 (dec) is represented
value B  0 0 0 1 0 1 1 1    //how 23 (dec) is represented
------------------------------   ---XOR---
value C  0 0 1 1 1 0 1 0    //the result, or 58.


Values are converted to binary, XOR´ed together and reconverted to dec.
Do we need hex instead for our code (since this example uses dec).

Source: http://cboard.cprogramming.com/cplusplus-programming/22040-xor-explanation.html

Wouldn´t be that codestype an "upgraded" C2?
My Wii hacking site...
http://bullywiihacks.com/

My youtube account with a lot of hacking videos...
http://www.youtube.com/user/BullyWiiPlaza

~Bully