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 

PSP Extra RAM?

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



Joined: 19 Apr 2009
Posts: 9

PostPosted: Sun Apr 19, 2009 7:41 am    Post subject: PSP Extra RAM? Reply with quote

I'm trying to see if I can use the PSP's extra RAM in user mode for assembly code. I know that the normal the range of the user memory is 0x08800000-0x0A000000, but I don't know where the extra ram area starts or if I could even jump to it. Anyone know?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Apr 19, 2009 12:12 pm    Post subject: Reply with quote

It's at 0x0A000000 to 0x0BFFFFFF. You can use it directly as long as you don't use PSP_LARGE_MEMORY = 1 in the makefile. Just set a pointer to it and fetch/store like normal. I did that in Doom for the PSP for the TV framebuffers (this was before it was known how to extend the vram to its full 4MB for framebuffers in vram for TV out).
Back to top
View user's profile Send private message AIM Address
poorkingz



Joined: 19 Apr 2009
Posts: 9

PostPosted: Sun Apr 19, 2009 12:50 pm    Post subject: Reply with quote

Alright. Everytime I try to access it (using assembly) I freeze. Probably since I am trying to use it with a UMD game, not my own homebrew (I do have UMD Cache on ofcourse). But thanks for the info anyway :).
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Apr 19, 2009 3:48 pm    Post subject: Reply with quote

I see, yes, if it's not your program running, the OS may still be using the extra memory for something else. In that case, you have to use the system functions for allocating memory, like sbrk does to set up the heap. I suggest you look at that code. If you look at one of the early threads on the Slim memory partitions, you'll see which partition the extra memory is, at which point you may be able to allocate from it. I say MAY because I don't know if anyone has tried such a thing.
Back to top
View user's profile Send private message AIM Address
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