Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
Lollerskates
Posts: 12 Joined: Sat Jun 25, 2005 2:42 pm
Contact:
Post
by Lollerskates » Sun Jun 26, 2005 3:43 pm
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:
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
squiggle
Posts: 9 Joined: Sun Jun 26, 2005 8:33 pm
Post
by squiggle » Sun Jun 26, 2005 8:35 pm
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..
Lollerskates
Posts: 12 Joined: Sat Jun 25, 2005 2:42 pm
Contact:
Post
by Lollerskates » Mon Jun 27, 2005 3:30 am
thank you very much, squiggle, that fixed all the operand issues.
all that's left is an error on line 104:
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?
Drakonite
Site Admin
Posts: 990 Joined: Sat Jan 17, 2004 1:30 am
Contact:
Post
by Drakonite » Tue Jun 28, 2005 7:14 am
remove the w from the "wa"