forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Forcing shutdown of PSP via crash... What way is quickest?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Fri Jul 28, 2006 10:34 am    Post subject: Forcing shutdown of PSP via crash... What way is quickest? Reply with quote

On non-purposeful crashes, the PSP shutsdown on some after 10 seconds, and on some it shutsdown after about 1 second or 2... I want to know of a way to make the PSP shutdown via the 2 second quick way via a crash...

Does anyone know of some kind of purposeful, non hurtful crash that could work? Say a buffer overflow purposely, Or freeing un-allocated space, etc.
Back to top
View user's profile Send private message
skistovel



Joined: 17 Jul 2006
Posts: 14

PostPosted: Fri Jul 28, 2006 12:43 pm    Post subject: Reply with quote

Does it have to be a crash? I mean, scePowerRequestStandby() is really fast....
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Fri Jul 28, 2006 5:10 pm    Post subject: Reply with quote

I don't know how fast are them, but you can try to cause an exception:

_sw(0, 0);

asm("break\n");

Etc,
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Fri Jul 28, 2006 5:16 pm    Post subject: Reply with quote

Im just trying to make it either shutdown meaning power on means XMB boot up as to standby where it stays in your homebrew app/game after turning it back on, instantly...
.
Both would be fine though, so that raw ASM code should casue an exception that powers off the PSP? Exiting instantly to XMB is no good :(

That standby line im assuming the standby mode i was talking about?
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Sat Jul 29, 2006 1:28 am    Post subject: Reply with quote

The PSP never actually powers off, it is either in standby mode (what you could term 'turned off') or suspend mode which is where it maintains its memory. so scePowerRequestStandby is probably what you are looking for.
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Sat Jul 29, 2006 3:15 am    Post subject: Reply with quote

Alright, thanks. Sorry for my lousy job at defining what i was asking for :X
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group