Computer

profileAlkhawaa
lab08_asm_functions_prob.s

AREA my_fancy_asm_code, CODE, READONLY EXPORT aTask1 EXPORT aTask2 EXPORT aTask3 EXPORT aTask4 ALIGN ; For loop: Find the index of the min number in an array arr of size n ; uint32_t aTask1(int32_t *arr, int32_t n); aTask1 PROC PUSH {r4, r5, lr} POP {r4, r5, pc} ENDP ; While loop: Determine the number of binary 1's using the parity-checking alg ; uint32_t aTask4(uint32_t num); aTask2 PROC BX LR ENDP ; Do-while loop: Count the number of binary 1's using a simplified approach ; uint32_t aTask3(uint32_t x); aTask3 PROC BX LR ENDP ; Count the number of deimal digits of an uint32_t number ; uint32_t aTask4(uint32_t n, uint32_t b); aTask4 PROC BX lr ENDP END