03-22-2016, 04:59 PM
Really old, but I post the exact logic for decimal anyways (probably your best bet in analog for multiple reasons).
This is the logic of how I built mine back in the past.
if A+B <10 than A+B = A+B
if A+B >10 and A<5 and B <5 than A+B = A+B -10 + carry
if A+B >10 and A>5 and B >5 than A+B = A-5+B-5 + carry
The second 2 removes 10 from the values to keep the number inside valid bounds.
If you want to use real negative values, go for base8.
if only positives present,all the logic what you need is to check if the output is greater than 7, if it is subtract 8. you will never ever "run out of the signal".
If you don't work with decimal, than I would say to work with octal, the benefits can be really big.
For addition all you need is the standard hex adder, you can use the rest for either negative values, or just transmission.
I haven't got there in the time when I was into it, but you may be able to go balanced hex. balanced ternary was beneficial to saturn, so it should work in minecraft. (I'm aware that this statement is really wrong, since there are more things to it, but you know what I'm pointing towards)
I can't remember the exact logic what I had for subtraction, but I know that it was kinda funny, that I had more work with that.
This is the logic of how I built mine back in the past.
if A+B <10 than A+B = A+B
if A+B >10 and A<5 and B <5 than A+B = A+B -10 + carry
if A+B >10 and A>5 and B >5 than A+B = A-5+B-5 + carry
The second 2 removes 10 from the values to keep the number inside valid bounds.
If you want to use real negative values, go for base8.
if only positives present,all the logic what you need is to check if the output is greater than 7, if it is subtract 8. you will never ever "run out of the signal".
If you don't work with decimal, than I would say to work with octal, the benefits can be really big.
For addition all you need is the standard hex adder, you can use the rest for either negative values, or just transmission.
I haven't got there in the time when I was into it, but you may be able to go balanced hex. balanced ternary was beneficial to saturn, so it should work in minecraft. (I'm aware that this statement is really wrong, since there are more things to it, but you know what I'm pointing towards)
I can't remember the exact logic what I had for subtraction, but I know that it was kinda funny, that I had more work with that.