diff --git a/src/addition.c b/src/addition.c index aaf9b6a..8b42dc7 100644 --- a/src/addition.c +++ b/src/addition.c @@ -8,5 +8,10 @@ void full_adder (int* sum, int* nextcarry, int number1, int number2, int carry) } unsigned int addition(unsigned int a, unsigned int b) { - return 0; + int s[1]; + int nc[1] = {0}; + + full_adder(s, nc, a, b, 0); + + return (unsigned int) s[0]; } \ No newline at end of file