PSP Pro GamerZ
Would you like to react to this message? Create an account in a few clicks or log in to continue.

PSP Pro GamerZ

For all your PSP Needs
AKA Team Unknown Forum
HomeRegisterLog in
---- Welcome to Team Unknown's official Forum, Don't forget to Register on the forum. Be sure to check out all of our projects such as uo DSONPSP and DigiPSP Also Check out our PSP Programming Tutorials Very Happy ----


 Some MIPS definitions

Go down 

Posts : 131
Points : 204
Join date : 2010-09-20
Location : In The Sky

Some MIPS definitions Empty
PostSubject: Some MIPS definitions   Some MIPS definitions EmptyThu Dec 02, 2010 5:01 am

Originally Posted by Team Unknown Zecaxao so all thanks goes to him Very Happy

I wanted to give some definitions of what you might find in psplink, so next time you see a crash, you know if it's exploitable or not. I also thought of making some instruction definitions, but that would be too long. Maybe i'll put a spoiler with those, if someone wants them. I wrote Exception Types from my learning experience, so I could be wrong about some of them, so feel free to tell me if that's the case.

$zr -> Constant zero
$at -> Assembler temporary
$v0-v1 -> Function return
$a0-a3 -> Incoming arguments
$t0-t9 -> Temporaries
$s0-s7 -> Saved temporaries
$k0-k1 -> Exception handling <- Defines the exception handling
$gp -> Global data pointer
$sp -> Stack pointer
$fp -> Saved temporary
$ra -> Return address <- GOAL

CoProcessor Registers:
BADVAddr -> Bad Virtual Address
Status -> Status Register
Cause -> Cause Register
EPC -> Exception Program Counter Register

Exception Types:
0->External Interrupt (useless)
1-3->Reserved (most likely FPU exception) (useless)
4->Address error (load or instruction fetch)(BINGO!!! Available in Davee's Tiff Exploit)
5->Address error (data store) (useless, unless you control some registers' values)
6->Bus error (instruction fetch) (BINGO!!! Available in ALL game exploits)
7->Bus error (data load or store) (useless, unless you control some register's values)
8-Syscall instruction (useless)
9-Breakpoint (useless, BUT a very rare case where $ra was totally overwritten appeared, still it's very very rare that this happens)
10-Reserved instruction (useless)
11- Coprocessor unusable (useless)
12- Arithmetic overflow (useless)
13-15- Not used

Experienced in C/OSLIB/C++/C#/HTML/PHP/HTML5/Javascript/Graphics and more...
PSP 1000 x1 Running 5.00M33-6
PSP Go x1 Running HBL Rev 101 V6.20
Team Unknown Leader

My Master Star aka NightStar3 [You must be registered and logged in to see this image.]
Back to top Go down
Some MIPS definitions
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
PSP Pro GamerZ :: PSP :: C++ Tutorials/OSLIB/MIPS/Programming-
Jump to: