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

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

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

Post by sg57 »

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.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

The "data" parameter specifies the address to write to or read from.
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
sg57
Posts: 144
Joined: Fri Oct 14, 2005 2:26 pm

Post by sg57 »

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.
Post Reply