int main() { int i = 0; // loop.s stores i in r3 while ( i <= 9 ) { // cmp r3, #9 and ble i = i + 1; } return i; // return value goes into r0 }