Arm/add

From ASMBits

arm/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 r0 and the second parameter is in r1.

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...