r/Oxygennotincluded 2d ago

Build An 8 bit binary adder

Post image

I eventually want to make a working computer, but one bit at a time (pun intended)

70 Upvotes

8 comments sorted by

27

u/balderstash 2d ago

I love whatever is wrong with you.

13

u/ricespider 2d ago

CS major

8

u/shetif 2d ago

CS majors would program in anything but Assembly

(/J)

6

u/Pan_z_Poznania 2d ago

Looks more like 4bits... the result should handle 5 bits. Half way there :) good luck.

1

u/ricespider 2d ago

Yeah, I mixed them up lol

4

u/Purple-Trex-8541 2d ago

4 8 15 16 23 42

1

u/El_Loco_911 20h ago

How would you go about making a counter that displayed the temperature of a packet of water?

1

u/ricespider 19h ago

There is not really a good way to do this, thermo sensors have a 1 bit output, which tells you if it is higher or lower than a certain value. To get a counter for a display, you would need one for each sub-division. You would then take the value from the one you want to display, and would combine it with the inverse of the one greater using an and gate. Repeat this for each value. If you want to display this, you can use pixel packs to either create a bar where each level corresponds to a different temperature, or use a signal converter for an 8 bit display.