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 

Illegal Operands, other than $v0

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



Joined: 25 Jun 2005
Posts: 12

PostPosted: Sun Jun 26, 2005 3:43 pm    Post subject: Illegal Operands, other than $v0 Reply with quote

Hey guys, I have the newest dev environment set up on linux, and this isn't about HelloWorld. I've searched the forum and couldn't find a post about other operands... this is happening when compiling the source released for Snake:

Quote:

startup.S: Assembler messages:
startup.S:19: Error: illegal operands `sw $s0,4($sp)'
startup.S:20: Error: illegal operands `sw $s1,8($sp)'
startup.S:22: Error: illegal operands `move $s0,$a0'
startup.S:23: Error: illegal operands `move $s1,$a1'
startup.S:25: Error: illegal operands `la $a0,_elfTest'
startup.S:26: Error: illegal operands `la $a1,_startAddress'
startup.S:31: Error: illegal operands `la $a0,_main_thread_name'
startup.S:32: Error: illegal operands `la $a1,xmain'
startup.S:33: Error: illegal operands `li $a2,0x20'
startup.S:34: Error: illegal operands `li $a3,0x40000'
startup.S:35: Error: illegal operands `lui $t0,0x8000'
startup.S:37: Error: illegal operands `move $t1,$0'
startup.S:39: Error: illegal operands `move $a0,$2'
startup.S:40: Error: illegal operands `move $a1,$s0'
startup.S:42: Error: illegal operands `move $a2,$s1'
startup.S:45: Error: illegal operands `lw $s0,4($sp)'
startup.S:46: Error: illegal operands `lw $s1,8($sp)'
startup.S:104: Warning: setting incorrect section attributes for .rodata.entrytable


am i missing something?

thanks
Back to top
View user's profile Send private message Visit poster's website
squiggle



Joined: 26 Jun 2005
Posts: 9

PostPosted: Sun Jun 26, 2005 8:35 pm    Post subject: Reply with quote

ra = 31
s0 = 16
s1 = 17

a0 = 4
a1 = 5
a2 = 6
a3 = 7
t0 = 8
t1 = 9

v0 = 2

ie: sw $s0,4($sp) would be sw $16, 4($sp)
hope that helps..
Back to top
View user's profile Send private message
Lollerskates



Joined: 25 Jun 2005
Posts: 12

PostPosted: Mon Jun 27, 2005 3:30 am    Post subject: Reply with quote

thank you very much, squiggle, that fixed all the operand issues.

all that's left is an error on line 104:
Quote:

startup.S:104: Warning: setting incorrect section attributes for .rodata.entrytable
>>> .section .rodata.entrytable,"wa",@progbits
__entrytable:
.word 0xD632ACDB
.word 0xF01D73A7
.word _start
.word __moduleinfo
.word 0


which is identical to the .section line from helloworld, but for snake it's not working. any idea?
Back to top
View user's profile Send private message Visit poster's website
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Tue Jun 28, 2005 7:14 am    Post subject: Reply with quote

remove the w from the "wa"
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
Lollerskates



Joined: 25 Jun 2005
Posts: 12

PostPosted: Tue Jun 28, 2005 9:34 am    Post subject: Reply with quote

Thank you very much, Drakonite.
Back to top
View user's profile Send private message Visit poster's website
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