
Posted:
Aug 26, 2005 @ 5:10pm
by kornalius
Ok, I found the problem. My assembly code calling function has been changed with some crappy code yesterday. I thought it was fine but it was causing all this mess all along.


Posted:
Aug 27, 2005 @ 6:47am
by refractor
rotate_imm = top four bits * 2
immediate = bottom_8_bits rotated right by rotate_imm
If you read the assembler source, it'll put things like:
<pre>
mov r12, #1, 20
</pre>
.. which is r12=1 ROR 20.
It's covered in the <a href="http://www.altera.com/literature/third-party/ddi0100e_arm_arm.pdf">ARM ARM</a> (ARM Architecture Reference Manual), page 222 (A5-6).