Affiliates |
|
Latest topics | » Deepest regards to the Sneaky CommunityFri Apr 10, 2020 11:27 pm by sabian49 » damn sneaky, RiP. It was funSat Oct 11, 2014 1:25 am by Sylen7Nato» Just Another Blonde Joke xD FUNNY AS FAWKMon Mar 03, 2014 5:37 pm by Rossy Redness » Hey it's Skinny107Tue Dec 03, 2013 8:24 pm by o5Gz » ps3 hacking!Mon Jun 10, 2013 9:42 pm by Sylen7Nato» PSP ISO ListMon Jun 10, 2013 9:28 pm by Sylen7Nato» tiger renderFri May 10, 2013 3:11 pm by mk7 » SWORN. Sun Dec 09, 2012 6:25 am by EverEffects» homefront redeem codeFri Nov 30, 2012 1:32 am by EverEffects» Calling SwornTue Nov 20, 2012 4:34 pm by EverEffects» Thought Id Stop By And Say HiThu Nov 15, 2012 3:40 am by HappySnacks69 » An Introduction Tue Nov 13, 2012 2:33 am by Ace700 |
Statistics | We have 4719 registered users The newest registered user is CraftPR
Our users have posted a total of 13086 messages in 2891 subjects
|
Who is online? | In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests
None
Most users ever online was 328 on Sun Jul 04, 2021 8:20 am
|
|
| Simple MIPS statements and Architecture | |
| Author | Message |
---|
EverEffects
Administrator
Posts : 805 1337ness : 25 Join date : 2010-10-31 Age : 31 Location : Oklahoma CIty
| Subject: Simple MIPS statements and Architecture Wed Nov 10, 2010 4:31 am | |
| Hello Guest,
This is a little addition to my other guide and might give you guys a little more explanation on things that should be covered so enjoy, and if you have ANYTHING to add please let me know and I will look into it. Also expect a guide on returns and methods for the 'jr ra' command comming in the next while along with a packet injection guide
Nop Signifies no operation, can be used (not what its designed for) to disable a function as opposed to what imok said. Nops can caused issues with the game if they are located inside an active function. When there are large areas of nop code, outside of a function, generally it's safe to change. This is where most subroutines are stored.
Lui Load Upper Immediate. Slightly more technical explanation. This will load a 16-bit value specified by the immediate into the upper half of the registers, so the top 16 bits of the register are equal to the immediate.
Lw The load word operation does something completely different from what imok said, unless I interpretted it wrong. It will load a 32-bits of data from the specified address into a register. For example.
Lets pretend $000A00FF has the value of 0xCC
lui t0, $000a lw t1, $00FF(t0)
After executing those instructions, t1 would be equal to 0xCC and t0 would still be equal to 0x000A
Ori This operation performs a bitwise OR on the immediate and the register and stores the result of that OR into a specified register. It can be, but isn't always, used to load data into a register containing no value, or when OR'd with the zero register.
Addiu I'm sorry but I have to disagree with the part that said it works like an ORI, they can however have similar uses. . Take this for example. 4 OR 4 = 4 4 + 4 = 8
Jr ra Indeed, jump register, where ra is the reigster its jumping to. Think of it like a normal jump, but the address its jumping to isn't a constant, and can be dynamically loaded. Don't forget, you can change the register to whatever you like, t9 is another common one. Ra is only used because when a jal is executed, it is automatically given the value of the address being jumped from + 8.
Stack Pointer (Register) Not to be confused with the stack we know which is used to move data from banning areas to safe ones. Useful for preserving registers across function calls. |
| | | blckhwksfan
Administrator
Posts : 1000 1337ness : 46 Join date : 2010-09-17 Age : 29
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 4:37 am | |
| Nice tutorials. Guest, you should really check out the tuts. |
| | | EverEffects
Administrator
Posts : 805 1337ness : 25 Join date : 2010-10-31 Age : 31 Location : Oklahoma CIty
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 4:38 am | |
| |
| | | blckhwksfan
Administrator
Posts : 1000 1337ness : 46 Join date : 2010-09-17 Age : 29
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 4:41 am | |
| Lol, it's the command you put in your topic posts |
| | | Literiture Vip
Posts : 313 1337ness : -11 Join date : 2010-10-02 Age : 28
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 5:05 am | |
| Just one question why is this dedicated to me? |
| | | blckhwksfan
Administrator
Posts : 1000 1337ness : 46 Join date : 2010-09-17 Age : 29
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 5:08 am | |
| Lol, it's not. There's a command that says to show the user's usernames in the posts when that user is looking at the post. So it says blckhwksfan for me. |
| | | Literiture Vip
Posts : 313 1337ness : -11 Join date : 2010-10-02 Age : 28
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 5:10 am | |
| OOOHHH....i thought i was just awesome haha jk good tut |
| | | SwoRNLeaDejZ
Administrator
Posts : 2120 1337ness : 140 Join date : 2010-09-17 Age : 38 Location : Massachusetts
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 3:13 pm | |
| Yes, i agree, i think Guest should check this shit out too. Guest is a total idiot, and Guest is probably the only person on this whole site that would really benefit from these tutorials. |
| | | Architect Site Poster
Posts : 139 1337ness : 12 Join date : 2010-10-15 Age : 29
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 3:29 pm | |
| |
| | | EverEffects
Administrator
Posts : 805 1337ness : 25 Join date : 2010-10-31 Age : 31 Location : Oklahoma CIty
| Subject: Re: Simple MIPS statements and Architecture Wed Nov 10, 2010 9:17 pm | |
| - SwoRNLeaDejZ wrote:
- Yes, i agree, i think Guest should check this shit out too. Guest is a total idiot, and Guest is probably the only person on this whole site that would really benefit from these tutorials.
You're gay, don't steal my stuff |
| | | Guest Guest
| Subject: Re: Simple MIPS statements and Architecture Thu Nov 11, 2010 12:18 am | |
| |
| | | Emu Newbie
Posts : 22 1337ness : 0 Join date : 2011-07-09 Age : 29
| Subject: Re: Simple MIPS statements and Architecture Sat Jul 09, 2011 3:34 am | |
| This is a decent guide, but I would explain "ori / or" a little better.
I'll explain Chris's "or" explanation a little further
$a1 = 4 $a0 = 4
ori $a1, $a0, $a1 // takes $a1 || $a0 = $a1 (|| means OR's/OR)
OR is a bitwise operator, so it converts your values into binary
$a1 cvt.bin = 100 $a0 cvt.bin = 100
then they are compared...
0100 0100 --------- 0100 = $a1 (result stored back into $a1)
$a1 = 0100.bin = cvt.dec 4 $a1 = 4
This will not always happen as the out come = the same number as the arguments This only happens when a number is OR'd, XOR'd, NOR'd, and AND'd by the same number.
Other than that nicely done Chris.
|
| | | Sponsored content
| Subject: Re: Simple MIPS statements and Architecture | |
| |
| | | | Simple MIPS statements and Architecture | |
|
Page 1 of 1 | |
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |