helloworld psp assembler error

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
patnet2004
Posts: 1
Joined: Mon Jul 04, 2005 5:17 pm

helloworld psp assembler error

Post by patnet2004 »

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

Code: Select all

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
pspkrazy
Posts: 49
Joined: Mon Jul 04, 2005 1:31 am

readme

Post by pspkrazy »

Please use the search button next time and google.

You must change $v0 to $2.


Bye
Yardbird
Posts: 11
Joined: Tue May 31, 2005 4:56 am

Post by Yardbird »

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)
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

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.
Post Reply