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 

Invalid operands to binary

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



Joined: 01 Jul 2005
Posts: 197

PostPosted: Sat Aug 27, 2005 6:12 pm    Post subject: Invalid operands to binary Reply with quote

Having not updated my toolchain for a while, I run toolchain.sh and update. Afterwards, I try to compile my program which compiled perfectly before the update, the line
Code:
vramaddr = (0x40000000 | sceGeEdramGetAddr()) + VRAM_OFFSET;
now created the error: Invalid operands to binary.
Seeing as this code was borrowed from spharm, I decided to compile that, but I got the same error.
Have I updated incorrectly, or is there a code-wise solution to this problem? Thanks.
Back to top
View user's profile Send private message
Jim



Joined: 02 Jul 2005
Posts: 487
Location: Sydney

PostPosted: Sat Aug 27, 2005 6:55 pm    Post subject: Reply with quote

I guess sceGeEdramGetAddr() is now returning void * not unsigned int.

Jim
_________________
http://www.dbfinteractive.com
Back to top
View user's profile Send private message Visit poster's website
AnonymousTipster



Joined: 01 Jul 2005
Posts: 197

PostPosted: Sat Aug 27, 2005 9:05 pm    Post subject: Reply with quote

Well, I changed the code to
Code:
vramaddr = (0x40000000 | 0x04000000) + VRAM_OFFSET;
Which works, but I don't understand why the GeEdram function was changed...oh well.
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