Here is the main code. I used the full adder from a previous homework

Here is the segment decoder used for the display

Here is the demonstration of me minusing from 3. The fourth led is the overflow indicator.