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 

sceIo function able to load data at custom address in RAM?

 
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 Nov 03, 2006 2:49 pm    Post subject: sceIo function able to load data at custom address in RAM? Reply with quote

Hey. I need to store/load data to a specified address in RAM. I need to use the sceIo* functions so... Ive been reading the docuemenation on them but it seems they dont have a parameter for where/what offset to store/load it into. Any help?

If this cant be done in C using sceIo* functions, how would i go about doing it in ASM? asm(" ... ;");

Thanks for any help.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Nov 03, 2006 4:07 pm    Post subject: Reply with quote

The "data" parameter specifies the address to write to or read from.
Quote:
int sceIoRead(SceUID fd, void *data, SceSize size);

Parameters:
fd - Opened file descriptor to read from
data - Pointer to the buffer where the read data will be placed
size - Size of the read in bytes
Back to top
View user's profile Send private message
sg57



Joined: 14 Oct 2005
Posts: 154

PostPosted: Fri Nov 03, 2006 5:44 pm    Post subject: Reply with quote

Of course... declaring a buffer does the memory placement for you, but its just memory right?

I feel like an idiot, yet ive learned something so... Im ok with that. Thanks alot! Seriosuly.
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