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 

helloworld psp assembler error

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



Joined: 04 Jul 2005
Posts: 1

PostPosted: Mon Jul 04, 2005 5:27 pm    Post subject: helloworld psp assembler error Reply with quote

i was trying to use the sdk to compile the helloworld sources but it gives me this error...

Code:

startup.s: Assembler messages:
startup.s:17: Error: illegal operands `la $v0,_gp'
startup.s:18: Error: illegal operands `move'
startup.s:23: Error: illegal operands `li $v0,1'
startup.s:70: Warning: setting incorrect section attributes for .rodata.entrytable
make: *** [startup.o] Error 1


the way i tryed to compile it was just by adding the makefile to the dir then editing it for the right OBJS but im not sure what ASFLAGS i should add to it to get it to assemble...

please help, thanks
Back to top
View user's profile Send private message
pspkrazy



Joined: 04 Jul 2005
Posts: 49

PostPosted: Mon Jul 04, 2005 6:32 pm    Post subject: readme Reply with quote

Please use the search button next time and google.

You must change $v0 to $2.


Bye
Back to top
View user's profile Send private message
Yardbird



Joined: 31 May 2005
Posts: 11

PostPosted: Mon Jul 04, 2005 7:04 pm    Post subject: Reply with quote

A better way would be to include regdef.h in the startup.s file (search for regdef.h in the psp software development forum)

Note that helloworld doesn't rely on the sdk libraries, using the sdk programming for the psp becomes easier (you don't have to worry about the register names)
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Tue Jul 05, 2005 1:17 am    Post subject: Reply with quote

Actually the problem is that he's still trying to build startup.s, which is no longer needed in PSPSDK.

Remove startup.s from your build.
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