1 2 # count for 1 million instructions 3 # total is 1 + 333332*3 + 2 4 5 6# Sycscalls 7.equ SYSCALL_EXIT, 1 8 9 .globl _start 10_start: 11 12 ldr r2,count @ set count 13 14big_loop: 15 add r2,r2,#-1 16 cmp r2,#0 17 bne big_loop @ repeat till zero 18 19 @================================ 20 @ Exit 21 @================================ 22exit: 23 mov r0,#0 @ result is zero 24 mov r7,#SYSCALL_EXIT 25 swi 0x0 @ and exit 26 27count: .word 333332 28