Forums - Open Redstone Engineers
WARNING: big brain subtractor - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: ORE General (https://forum.openredstone.org/forum-39.html)
+--- Forum: Projects & Inventions (https://forum.openredstone.org/forum-19.html)
+---- Forum: Completed Projects (https://forum.openredstone.org/forum-21.html)
+---- Thread: WARNING: big brain subtractor (/thread-14037.html)



WARNING: big brain subtractor - EEVV - 05-17-2018

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]


RE: WARNING: big brain subtractor - Matthew - 05-17-2018

this makes me H A R D


RE: WARNING: big brain subtractor - baslak19 - 05-18-2018

Subtractor? You know you could just use two’s complement addition.


RE: WARNING: big brain subtractor - konsumlamm - 05-18-2018

(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)


RE: WARNING: big brain subtractor - baslak19 - 05-18-2018

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.


RE: WARNING: big brain subtractor - EEVV - 05-19-2018

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.


RE: WARNING: big brain subtractor - Trecar - 05-19-2018

Cool, when do we get a 64 Bit CPU?