10-04-2017, 04:56 AM
I'm planning on making an 8-bit binary to bcd decoder. (In minecraft) The part that is making it weird is that I'm doing it with signed binary. I'm obviously not the first to attempt this. My current thought is that I just create a regular bcd decoder, but I precede it with an operation where the leading bit is read and if it's a 1, it carries an extra bit to the display to light the minus and it converts the number to its Twos Complement and runs it through the regular bcd. Does anyone have any ideas for a conditional Twos Complement converter? I think I can do it with adders, but it seems like there might be an easier way or maybe a completely different binary to bcd method besides double dabble which will make this unnecessary.