QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Couple of coding related questions...

This is a discussion on Couple of coding related questions... within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi, I just started deving for my PSP last night, I'm currently porting some of my old GBA code to ...

Reply
 
LinkBack Thread Tools
Old 08-01-2005, 02:52 AM   #1
 
Paolo's Avatar
 
Join Date: Jul 2005
Posts: 9
Trader Feedback: 0
Default Couple of coding related questions...

Hi, I just started deving for my PSP last night, I'm currently porting some of my
old GBA code to it, but few questions arised. (n00b questions, I know, but after
whole night of coding U're sometimes just too lazy to dig...

First one is simple: What is PSP's pixel format? My guess would be xbbbbbgggggrrrrr...
Getting even close?

Second one: How come I can't use the 'address of' operator (&). Compiler says
"parse error before '&' token". Is this some kind of C vs. C++ issue...?

Third one: How come booleans are not supported? Or are they?

Fourth: Why can't I use sin() function, even if I include <math.h>? That's not
a big deal, of course I use a lookup, just made me wonder...

I set up my environment using the step by step help from this forum. (Thanks
for the writer, btw!)

Any help appreciated!!! :clap:
Paolo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2005, 03:00 AM   #2
 
Join Date: Jul 2005
Posts: 19
Trader Feedback: 0
Default

try ps2dev.org they should be some good help to you.
straightballin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-01-2005, 07:39 AM   #3
 
Yeldarb's Avatar
 
Join Date: Jul 2005
Posts: 984
Trader Feedback: 0
Default

Quote:
First one is simple: What is PSP's pixel format? My guess would be xbbbbbgggggrrrrr...
I don't remember right off the bat, but look in the sample files, there are a ton of examples that you can probably discern this from
Quote:
Second one: How come I can't use the 'address of' operator (&). Compiler says
"parse error before '&' token". Is this some kind of C vs. C++ issue...?
I don't know... it worked for me, I just tried
Code:
int whatever = TRUE;
int* myptr   = &whatever;
And I got no errors.
Quote:
Third one: How come booleans are not supported? Or are they?
Apparently they arent. Put this at the top of your program and use type int instead of bool.
Code:
#define FALSE 0
#define TRUE  1
int yourbool = TRUE;
Quote:
Fourth: Why can't I use sin() function, even if I include <math.h>? That's not
a big deal, of course I use a lookup, just made me wonder...
You have to link the library in your makefile, I believe the math header is linked with -lm

Good luck with your coding
Yeldarb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
coding , couple , questions , related

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 12:29 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us