MIPS assembly - Carry in and carry out
3. Workshop Task II [Total max. mark: 1.0)...
3. Workshop Task II [Total max. mark: 1.0) • Write new code to implement "CarryIn and CarryOut" logic as shown in the figure below: (you can also refer to lecture 10 slides for more details). Carryin CarryOut The program should accept three inputs: a, b, CarryIn, and generate one output: CarryOut. As before, check that the keyboard input is 0 or 1. Remember, you are not implementing the complete 1-bit adder circuit, only the Carry In/ CarryOut part. Hints: To implement AND and OR logic gates, you can consider to use the logical instructions "and" and "or". Add code which terminates the program when"-1" is entered as any of the three inputs a, bor Carry In. Document your programs following the style of the programs discussed in the lectures, and demonstrated in the examples. Insufficient documentation and missing comments will detract from your mark.