Nios/add

From ASMBits

nios/absPrevious

Write a function that returns the sum of its two parameters. The parameters and return values are both 32-bit integers. As always, the first parameter is in r4 and the second parameter is in r5.

int add (int a, int b);

Expected solution length: Around 2 lines.

Sample Input

(1, 1)

Sample Output

2 

Write your solution here

Upload a source file...