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 

Port An Emulator?

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



Joined: 12 Aug 2008
Posts: 2
Location: Somewhere...

PostPosted: Tue Aug 12, 2008 11:55 pm    Post subject: Port An Emulator? Reply with quote

OK, so I have MinGW and MSYS installed as well as the needed toolchain, and I have the source code of the emulator that I want to port, but I would like to know how and where I should start from.

Let me just tell everyone that I am a total noob at this, but I do have the time and patience to do this. I just need someone to point me in the right direction, and I should be able to go from that.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Wed Aug 13, 2008 12:05 am    Post subject: Reply with quote

Do you know how to program in C (or C++, if the emulator was written in that)?
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ScienceOfThePS3



Joined: 12 Aug 2008
Posts: 2
Location: Somewhere...

PostPosted: Wed Aug 13, 2008 12:45 am    Post subject: Reply with quote

Yes, I have experience in C++.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LBGSHI



Joined: 07 Aug 2006
Posts: 136

PostPosted: Wed Aug 13, 2008 1:06 am    Post subject: Reply with quote

Ah, great. To be honest, I don't know nearly enough to port an emulator from another platform to PS2; I was merely going to point out that, if you weren't comfortable with C/C++ quite yet, you might not want to start developing by porting an emu, heh.

Hopefully someone with a bit more experience (specifically in porting emulators) will be of assistance...
_________________
I may be lazy, but I can...zzzZZZzzzZZZzzz...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Aug 13, 2008 4:22 am    Post subject: Reply with quote

Porting an app is EASY - just find all the parts that DON'T work on the target platform and change them into code that does. See? Easy! If you need more help than that, you aren't ready to be porting. Learn more about the target platform by studying apps. Look for apps that do things the port will need to see how those tasks are done. If the app has been ported to a number of platforms, compare the code for the ports to see how it was done for other platforms.
Back to top
View user's profile Send private message AIM Address
cosmito



Joined: 04 Mar 2007
Posts: 314
Location: Portugal

PostPosted: Wed Aug 13, 2008 8:04 am    Post subject: Reply with quote

J.F. wrote:
Porting an app is EASY - just find all the parts that DON'T work on the target platform and change them into code that does. See? Easy! If you need more help than that, you aren't ready to be porting. Learn more about the target platform by studying apps. Look for apps that do things the port will need to see how those tasks are done. If the app has been ported to a number of platforms, compare the code for the ports to see how it was done for other platforms.


JF... As usual on the spot, saying the right things but using slightly acid words ;)

@ScienceOfThePS3, good that you have enough free time. As JF said, look how things are done, namely how to display bitmaps and playing sounds. Get familiar with the sdk and how the hardware works. This could take a lot of time :S

BTW : if you like to program in C++, consider the gslib graphics library as an alternative to the gsKit (see http://forums.ps2dev.org/viewtopic.php?t=10320). gsKit could be seen as the standard for current sdk but personally I hate the high resolution modes with interlaced video is features for TV output... Which is non-sense if one only need a 320x240 display.

-----------------------
I was ptek in a previous encarnation, until I asked for a nick refactoring
Back to top
View user's profile Send private message Visit poster's website
Wraggster



Joined: 26 Aug 2005
Posts: 121

PostPosted: Wed Aug 13, 2008 8:04 am    Post subject: Reply with quote

would porting some SDL games be a good base to learn, im no coder but it does seem that a lot of people port SDL apps or games to break in first.

theres always a chip 8 emulator, supposedly the easiest to port to any system, although not being a coder i wouldnt know personally :)
_________________
Webmaster of http://www.dcemu.co.uk

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Aug 13, 2008 12:12 pm    Post subject: Reply with quote

Theoretically, yes. Much of the work is already done by SDL. If the SDL port for the platform in question has some limitations, that would be about all you have to concern yourself with. A prime example is the inputs - the PS2 will be more limited than a PC with a keyboard and mouse, so you may have to change how the app handles that.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 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