Forums - Open Redstone Engineers

Full Version: WARNING: big brain subtractor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
/warp bigbrain
64 bit 6 tick hex subtractor

b i g

by EEVV and HyperXti
[Image: xTO9WM5.png]
[Image: rXS405U.png]
[Image: CQ70AP7.png]
this makes me H A R D
Subtractor? You know you could just use two’s complement addition.
(05-18-2018, 12:09 AM)baslak19 Wrote: [ -> ]Subtractor? You know you could just use two’s complement addition.

this is hex, so you can't use two's complement, you could use 16's complement
apart from that hex subtraction is faster than addition (at least when they used magicals algorithm which i think they did)
eBut you still have to ripple borrow, right?

Ty! 16’s complement, yes.  I’m researching edge cases with hex 16’s cmp. right now.
No ripple. This uses BCS logic which is derived from CCA. It uses instant diodes and comparators to generate borrows. The whole thing is literally 6 ticks to compute a subtraction.
Cool, when do we get a 64 Bit CPU?