| View previous topic :: View next topic |
| Author |
Message |
patnet2004
Joined: 04 Jul 2005 Posts: 1
|
Posted: Mon Jul 04, 2005 5:27 pm Post subject: helloworld psp assembler error |
|
|
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 |
|
 |
pspkrazy
Joined: 04 Jul 2005 Posts: 49
|
Posted: Mon Jul 04, 2005 6:32 pm Post subject: readme |
|
|
Please use the search button next time and google.
You must change $v0 to $2.
Bye |
|
| Back to top |
|
 |
Yardbird
Joined: 31 May 2005 Posts: 11
|
Posted: Mon Jul 04, 2005 7:04 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Tue Jul 05, 2005 1:17 am Post subject: |
|
|
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 |
|
 |
|