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 

A simple source code compile request

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



Joined: 30 Sep 2005
Posts: 3

PostPosted: Fri Sep 30, 2005 5:11 pm    Post subject: A simple source code compile request Reply with quote

Hello I have a little request if someone doesn't mind helping me with this. I have a small frustration when using homebrew apps on my psp. For some reason everybody that makes them codes them with the X and O buttons reversed from what normal US playstation and psp games use. IE on an actual psp game pressing X selects/executes an option, and O back the user out. However say in NestorJ the NES emulator this is the opposite. Pressing X backs out and pressing O selects. This has become frustrating. when you have to press X to start the emulator and then switch your thought proccess to pressing O to select once the Emu is started. I do know enough that I found the configuration file (NES_PAD.H)in the NestorJ source code that NestorJ uses to set which buttons operate which functions.

NES_A = 0x01,
NES_B = 0x02,
NES_SELECT = 0x04, // PLAYER2 MIC
NES_START = 0x08,
NES_UP = 0x10,
NES_DOWN = 0x20,
NES_LEFT = 0x40,
NES_RIGHT = 0x80

If my Assumptions are correct Switching the values for the lines NES_A
NES_B (switch 1 to 2 and 2 to 1)should switch the X and O buttons so that they react the same as a us psp.

I am nowhere near being a programmer nor do I understand how to use the psp sdk. if there is someone who can make this change and compile the emulator so that I can see if this works. If it does work I would like to convert all my Emulators like this as these backwards buttons drive me up the wall. I thanks all who might lend there help and time

Thanks
Rploesser
Back to top
View user's profile Send private message
Heran_Bago



Joined: 17 Sep 2005
Posts: 7

PostPosted: Sat Oct 01, 2005 8:40 am    Post subject: Reply with quote

PSPSDK cannot just compile anything for the PSP. NesterJ is an example, it uses a different compiler and the normal PSPSDK won't do the trick. It's likely that modified PS2 one.
For example, PSPSDK doesn't recognize the ee-gcc comand.
Back to top
View user's profile Send private message AIM Address
Rploesser



Joined: 30 Sep 2005
Posts: 3

PostPosted: Sat Oct 01, 2005 11:34 am    Post subject: Thanks for your info on this issue Reply with quote

Do you possibly know what compiler nestorj uses, or where I can find out that info? Although this seems like a very minor issue. It bugs me alot and I would love to be able to make this change and recompile nestorj.

Thanks
Rploesser
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Sat Oct 01, 2005 11:47 am    Post subject: Reply with quote

ee-gcc indicates the old ps2dev toolchain...
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Rploesser



Joined: 30 Sep 2005
Posts: 3

PostPosted: Sat Oct 01, 2005 12:29 pm    Post subject: getting a little further Reply with quote

Well im getting a little further with my quest to fix these annoying buttons. I followed your advice and downloaded the ps2sdk. and used that to attempt to compile nestorj. I got alot further it went through alot of data scrolling up the cmd window as it was compiling. However it did spit out an error. below are the last four line it displayed before stopping.



g -o out > nestorj.map
outpatch
modulename not found
make: *** [out] error 1

Like I said following your advice I got alot further. Before it wouldnt even begin to compile anything. So it appears you have led me down the right road. but now this is where im stuck

Thanks
Rploesser
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Sat Oct 01, 2005 12:36 pm    Post subject: Reply with quote

hard to tell :) could be the author used a custom version of outpatch... mmh :) what about simply mailing him? :=P
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Heran_Bago



Joined: 17 Sep 2005
Posts: 7

PostPosted: Sun Oct 02, 2005 2:30 pm    Post subject: Reply with quote

The author is japanese. What english he uses is translated via friends or just common knowledge. If you email him, good luck.

The commands used by the modded PS2 one, are there PSP equivilents?
If so, are they listed? and where?

Where could one find this modded PS2 compiler anyway?
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 -> 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