If the second half of the value is just zero's you would only need to load the first half if everthing is zero you can just use sw zero$xxxx(t0) or whatever register your using for your first half of the addy, an ex.
hook
lui t0, $08d0
sw zero, $44d8(t0)
jr ra
would be a simple kinfe routine.
----Added 1/9/2009 at 3:20 AM----
Ill explain every line alittle better. The knife code has three values
0x00000000;offline
0x00000100;online
0x00000101;adhoc
Everything thats in red is uneeded. Whats in blue can be deleted and one line is only needed before the jr ra wich is sw zero $44d8(t0) and if you do that you just need to change bne to 0x00F0016C 0x154B00052 to make it work
0x00000004 0x0A5C0054;hook
0x00F00150 0x3C0808D0;loads the first half of addy into t0
0x00F00154 0x3C0909A8;loads the first half of controller into t1
0x00F00158 0x8D2AE1E4;loads the value of controller into t2
0x00F0015C 0x340B8200;loads the value of R+[] into t3
0x00F00160 0x3C0C0000;loads the first half of value (online) into t4
0x00F00164 0x358C0100;loads the second half of value (online) into t4
0x00F00168 0xAD0C44D8;Saves the value of t4 into the knife address
0x00F0016C 0x154B0005;branches to jr ra if button is not being pressed if it
is being pressed it allows whatever is underneath to process through
0x00F00174 0x3C0D0000;loads the first half of value (offline) into t5
0x00F00178 0x35AD0000;loads the first half of value (offline) into t5
0x00F0017C 0xAD0D44D8;Saves the value of t5 into the Knife address
0x00F00184 0x03E00008;Ends Routine
0x004d7400 0x4B400000;FTB1 Lockon style
Bookmarks