This preview shows page 1. Sign up to view the full content.
Unformatted text preview: routine mov r2, r0 ; Counter mov r0, #0 repeat add r2, r2, #-1 ; Decrement counter add r0, r0, r1 cmp r2, #0 bgt repeat mov pc, lr Example #2 Example #1 is augmented to handle signed numbers Example #3 Discuss how the CPSR can be used to branch to a routine to handle overflow of a signed multiplication routine....
View Full Document
- Spring '11