Category:ARM Assembly: Difference between revisions

m
→‎Setting Flags: clarification
m (→‎Setting Flags: clarification)
Line 63:
 
Most processors would have to push and pop the condition code register between the compare and the branch. Otherwise, the act of loading <code>r2</code> and <code>r3</code> would affect the outcome of the branch. Not so on the ARM!
 
''NB: On many Intel-based machines, loading from memory won't affect the flags, but the point still stands: even math operations can be done on the ARM between a calculation that set the flags and the branch based on those flags, and as long as the instructions in between do not update the flags, they won't change the outcome of the branch.''
 
===Call Stack===
1,489

edits