--- Quote Start ---
originally posted by simon.embed@Mar 16 2005, 10:01 AM
test code as following:# ====================================
.set noat
_start:
movia at,((90000000+57600)/115200)
movia at,((90057600)/115200)
.end# ====================================
i got these result:
[nios2 gnu shell]$ nios2-elf-gcc -c -o test.o test.s
[nios2 gnu shell]$ nios2-elf-objdump -s test.o
test.o: file format elf32-littlenios2
disassembly of section .text:
00000000 <_start>:
0: 00415774 movhi at,1373
4: 0852a014 ori at,at,19072
8: 00400034 movhi at,0
c: 0840c354 ori at,at,781
[nios2 gnu shell]$
why? --- Quote End ---
What version are you running? If you type nios2-elf-gcc -v this will tell you.
Using your file
.set noat
_start:
movia at,((90000000+57600)/115200)
movia at,((90057600)/115200)
.end
With the command lines below I get exactly what you'd expect
[SOPC Builder]$ nios2-elf-gcc -c -o test.o test.S
/cygdrive/d
[SOPC Builder]$ nios2-elf-objdump -S test.o
test.o: file format elf32-littlenios2
Disassembly of section .text:
00000000 <_start>:
0: 00400034 movhi at,0
4: 0840c344 addi at,at,781
8: 00400034 movhi at,0
c: 0840c344 addi at,at,781