RAM Access (Please Help)

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Derek8588
Posts: 62
Joined: Fri Oct 22, 2004 2:14 pm

RAM Access (Please Help)

Post by Derek8588 »

Is there any way possible to dump the contents of the PS2's ram into a .bin file? I have the serial cable installed if i could do it that way... Please Help. Thanks
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

It is certainly possible, but wouldn't be very fast... sending 32MB of data over serial would take a bit of time.

As for how, you'd have to write a program to do it. There's some documentation on the serial port in ps2sdk, specifically in sio.h. Here's the important functions:

Code: Select all

void sio_init(u32 baudrate, u8 lcr_ueps, u8 lcr_upen, u8 lcr_usbl, u8 lcr_umode);
size_t sio_write(void *buf, size_t size);
size_t sio_read(void *buf, size_t size);
BTW, you probably can't really do this while a game is running, if that was your plan...
Post Reply