Page 1 of 2

ARM Assembler question.

PostPosted: Aug 25, 2005 @ 7:39pm
by kornalius

PostPosted: Aug 25, 2005 @ 8:24pm
by refractor

PostPosted: Aug 25, 2005 @ 11:13pm
by kornalius

PostPosted: Aug 26, 2005 @ 1:30pm
by refractor

PostPosted: Aug 26, 2005 @ 2:17pm
by kornalius

PostPosted: Aug 26, 2005 @ 2:20pm
by refractor

PostPosted: 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. :evil:

PostPosted: Aug 27, 2005 @ 12:52am
by kornalius

PostPosted: 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).

PostPosted: Aug 27, 2005 @ 1:45pm
by kornalius

PostPosted: Aug 27, 2005 @ 4:56pm
by refractor

PostPosted: Aug 27, 2005 @ 6:37pm
by kornalius

PostPosted: Aug 27, 2005 @ 8:42pm
by refractor

PostPosted: Aug 28, 2005 @ 12:55am
by kornalius

PostPosted: Aug 28, 2005 @ 1:40am
by kornalius