Fernando Pena López
2006-02-09 12:34:30 UTC
Hi all...
I'm trying to crosscompile some code for a ppc403 and I'm getting problems
at the beginning...
The problem is not with the compiler, just the assembler (GNU as).
I'm trying to assemble some elementary code like this one:
li %r3, 0xFFFF
and I always get the same error:
"fast_init.s:96: Error: operand out of range (65535 not between -32768 and
32767)"
In this case, the offending line is the line number 96, but I get the error
in every "li" opcode.
The funny thing is that if the opcode is "lis", there are no errors...
Maybe It's a syntax mistake, but I can't find any doc about the syntax for
ppc arch.
The "as" version is 2.15, and the command that I use to assemble is
"powerpc-linux-as -o fast_init.o -m403 fast_init.s"
Any clue?
Thanks in advance.
Fernando Pena López.
<***@mundo-r.com>
I'm trying to crosscompile some code for a ppc403 and I'm getting problems
at the beginning...
The problem is not with the compiler, just the assembler (GNU as).
I'm trying to assemble some elementary code like this one:
li %r3, 0xFFFF
and I always get the same error:
"fast_init.s:96: Error: operand out of range (65535 not between -32768 and
32767)"
In this case, the offending line is the line number 96, but I get the error
in every "li" opcode.
The funny thing is that if the opcode is "lis", there are no errors...
Maybe It's a syntax mistake, but I can't find any doc about the syntax for
ppc arch.
The "as" version is 2.15, and the command that I use to assemble is
"powerpc-linux-as -o fast_init.o -m403 fast_init.s"
Any clue?
Thanks in advance.
Fernando Pena López.
<***@mundo-r.com>