BCD adder/ subtractor

Build image: 
In-game name (NO VISITORS! Must be LEARNER rank or higher!): 
Auzifriend
Builder name(s) and current ranks: 
Auzifriend: Learner
Creation location: 
-2125 25 1405
Machine Features: 

I have made a BCD adder which processes 2, 8 bit inputs (2 BCD digits per input) and outputs their addition or subtraction depending on the mode.

it has a 3t throughput and 15t latency

it uses an adder for the 10s compliment of B for subtraction; an adder to calculate the partial sum and each nibbles COUT, then if each nibbles sum is >9 or their COUT is on, it will normalise the partial sum by adding 6 to the nibble.

How To Use: 

each input is 2 nibbles (separated by gold blocks) and the output is also separated by gold blocks. the add/sub mode lever is a diamond block.

when you subtract, the 100s place is automatically on so ignore that while subtracting. :)

Comments

the previous iteration had an issue with the +6 detection when the upper nibble was 9, so I made a new one with the same throughput but a 23t latency (slower but it actually works so its chill)

By Auzifriend

You mentioned that you have made a second machine. As of right now, I'm not sure where that would be.
Do you have coordinates? Hoping I'm not too late to this promo and another staff already handled this.

By RitzKid76