Nios/array inc

From ASMBits

Write a function that increments (by 1) each element in an array of integers. The first argument is a pointer to the start of the array. The second argument is the number of elements in the array.

There is no return value.

void array_inc (int *array, unsigned int n);

Expected solution length: Around 10 lines.

Sample Input

[1 2 3 4]

Sample Output

[2 3 4 5] 

Write your solution here

Upload a source file...