



Error: attempt to move .org backwards
by dabing on Jun 21, 2013 |
dabing
Posts: 8 Joined: Apr 25, 2011 Last seen: May 22, 2014 |
||
I compile bootrom.S using "or32-elf-as bootrom.S -o boot.elf",
it turns out : bootrom.S: Assembler messages: bootrom.S:1: Error: attempt to move .org backwards It seems that ".org 0xf0001000" is wrong. AS I use jump instructions in the bootrom.S and I want that the jump destination is in the rom,namely 0xf0001xxx, not 0x00001xxx in the ram, So I have to locate the programm from adrress 0xf0001000. How can I solve that? Thank YOU! the content of bootrom.S is as follows: .org 0xf0001000 reset: l.nop 0x0 l.nop 0x0 l.j main ......
bootrom.S (6 kb)
|



