Category:ARM Assembly: Difference between revisions

m
No edit summary
Line 6:
 
===Separate Destination for Math===
With the x86, 68000, and other similar processors, arithmetic functions take two operands: the source and the destination. Anytime you add two numbers, one of them gets changed. This is not the case with the ARM. The destination can be a third register that isn't involved in the arithemticarithmetic whatsoever!
 
<lang ARM Assembly> add r3,r2,r1 ;add r2 to r1 and store the result in r3. r1 and r2 are unchanged.</lang>
1,489

edits