Arm/arraysum

From ASMBits

Write a function that returns the sum of all elements of an array of 32-bit (signed) words.

The function has two parameters. The first parameter is a pointer to the start of the array. The second parameter is the length of the array (at least 1).

Sample Input

[1, 2, 3]

Sample Output

r0=6

Write your solution here

Upload a source file...