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 

memmove issue

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



Joined: 25 Jun 2005
Posts: 23
Location: paris

PostPosted: Thu Jul 07, 2005 9:49 am    Post subject: memmove issue Reply with quote

hi, just wanted to point the small issue with pspsdk & memmove.
it doesn't seem to be well implemented whereas memcpy is ok.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu Jul 07, 2005 10:17 am    Post subject: Reply with quote

What's the issue?
Back to top
View user's profile Send private message
yoyofr



Joined: 25 Jun 2005
Posts: 23
Location: paris

PostPosted: Thu Jul 07, 2005 4:17 pm    Post subject: Reply with quote

in fact it's a bit strange. I had my sources compiling and working well without pspsdk (using my own malloc, stdio functions, ...).
the sources are snes9x ones, more specifically, my own version of it (I'm the author of ljp, a palmos multi system emulators).
I've ported it to pspsdk, compiling is fine, ... but when I launch the program, I had a blackscreen with a very low fps. but *no crash*.
basically, instead of having the game showing, I had a black screen and it was like the I was emulating a lot of cpu intensive instructions

so I guess the memmove had corrupted some memory areas, but nothing too nasty since I had no crash and always could exit using home button.

by using a #define memmove memcpy in a globally used include file,
the issue ran away. I don't remember the sdk version I'm using, but I've
done a checkout on svn last monday evening (GMT+1)

anyway, I'll publish the sourcecode soon on my website

*edit*
I forgot to thank you for all your work! I don't post a lot in the forum but I read it everyday and it's mainly thanks to it that neocdpsp could be done.
I hope you keep up the great work!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mc



Joined: 12 Jan 2005
Posts: 212
Location: Linköping

PostPosted: Thu Jul 07, 2005 9:55 pm    Post subject: Reply with quote

I had a quick look at the implementation, and it seems to me that

*udst-- = *usrc--;

should really be

*--udst = *--usrc;
_________________
Flying at a high speed
Having the courage
Getting over crisis
I rescue the people
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Thu Jul 07, 2005 11:23 pm    Post subject: Reply with quote

Indeed it should be, changed it.
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