that wasnt to hard to guess ....
and stop going off topic post this stuff in junk or free chat not to be mean
<(<>,..,<>)>
that wasnt to hard to guess ....
and stop going off topic post this stuff in junk or free chat not to be mean
<(<>,..,<>)>
Last edited by Poisonflame; 05-24-2010 at 03:49 PM. Reason: misspelled
PoiSoNFLaMe
xl_Ninja_lx
Some of this is slightly incorrect.
If we where going to "load" are controller address we would do this:
Lui t0, $First half of controller
Ori t0, t0, $Second half of controller
We want to load the VALUE AT the controller address like this:
Lui t0, $First half of controller address
Lw t0, $Second half of controller address
And since most button values are no more than 16bits we can use Lh and not Lw. I think you would use Lw/Lh but you should say that we are going load the value at the controller address.
The button value lines are not that well put together. I would say some thing like this:
Add the button value to zero then assign the result to another register.
or if we where using the ori command:
Or the button value and zero to produce a result that will be assigned to another register.
The branch isn't 'branching' are controller address and button values. Branches check the data in registers, like bne checks if the contents of two registers are not equal, if they are not equal it branches to the target address and then executes the delay slot that was after the branch.
The rest up until jr ra I already covered. But the jr ra does not 'ends out routine' it jumps to the contents of the register ra, ra is the return address. In C/C++ this is like returning a value in a function, like this:
return x + y;
the result address basically 'resets' the address's values to there default values, then are hook acts like a function call and jumps us back to are subroutine, which is basically a function that we have created in empty areas of the game.
I am sure you would do what I said here, but some of the wording is incorrect, and I thought I would point that out. I mean no offence though.