[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] OR1200 problem



> to move data into a register, I use l.movhi first to move the upper
> 16-bits in and then ORI it with the lower 16-bits.. is this the best way
> to move a 32-bit value into a register??
yes.

> to store into a data mem location, I use a l.movhi to get the upper
> 16-bits into a register, and then to a l.sw with another 16-bit offset
> to move the data from a register to data mem.. a similar way for load
> except that I do a l.lwz instruction..
I suspect, you are doing this incorrect, it should be

l.movhi
l.ori
l.sw

Please supply full asm code of your programs.


--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml