DMAC -> memset

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

Moderators: cheriff, TyRaNiD

Post Reply
Brunni
Posts: 186
Joined: Sat Oct 08, 2005 10:27 pm

DMAC -> memset

Post by Brunni »

Hello,

I use DMAC memcpy with a simple stub, and it's very fast. But now I need a memset routine to quickly zero-initialize large data sections, and I didn't found anything about this on the Internet.

Is there any DMAC accelerated memset routine available, or a way to work directly with DMAC hardware? (for example, the GBA has a src repeat bit for use as a memset, so I think the PSP should also have it ^^)

Thank you in advance for your replies
Sorry for my bad english
Image Oldschool library for PSP - PC version released
jsgf
Posts: 254
Joined: Tue Jul 12, 2005 11:02 am
Contact:

Post by jsgf »

Could you manually memset the first chunk and then do an overlapping DMAC memcpy to do the rest of the clear/memset?
Post Reply