r/Minecraft360 • u/yipyipyap • Feb 03 '13
4-Bit Computer (Preview)
http://imgur.com/a/MNFQp4
2
u/Dr_Mantastic Feb 04 '13
What is the highest you can do in xbox? Vanilla for computer I think you can get your ram up to 512.
3
u/yipyipyap Feb 04 '13
As far as just fitting ram into the world? I'm not sure. You could fill the map with ram cells floor to ceiling and it would be massive but pointless. The interesting question is how much addressable/usable RAM you can fit in the area of rendered chunks around the player. Right now my computer is so large length wise that if you stand at one end a portion of the opposite end won't even be rendered. As long as you're in the control room everything's groovy though.
3
u/babycubbybear Feb 03 '13
Uh.... So it does what now?
3
u/yipyipyap Feb 03 '13
That's up to the programmer. It can do simple arithmetic like take in 2 4-bit numbers and add them, or it can do complex programs with many steps. You program basic instructions in the program memory by adding or removing torches in the relevant spots (picture 4 shows the program memory). Each instruction will be something simple like Add A+B and save the result to memory cell 2. Programs are just one instruction after the other.
I haven't written any programs longer than like 6 lines as I'm still just building and testing this, but after I build auxiliary inputs and outputs I could theoretically use it for simple games or maybe a printer or something.
3
u/babycubbybear Feb 03 '13
Thanks for explaining lol are you using some kinda reference when building this or is this strictly trial and error?... And here I was so proud when I made my first auto-farm or hidden bridge....
3
u/yipyipyap Feb 03 '13
I've been learning about the different components and thinking about how it all fits together for quite awhile. I built an Adder and an ALU last summer, but it wasn't until a couple weeks ago that I started this project. After feeling I understood the theory behind it all I just started planning and building. The architecture is my own, although a couple of the component parts are designs I found online (The RAM and a binary counter).
There are some really helpful videos I've found though. I'm going to make a list and post them soon.
1
11
u/Kudhos GT - St Bellerophon Feb 03 '13
I have NO idea how it works, why it works, and how one makes that.
But uh, have an upvote.
9
5
2
2
u/unerds unerds Feb 03 '13
that thing looks amazing... not sure if much of this sort off thing has been done on mc360..
can't wait to see the finished product.
1
0
8
u/yipyipyap Feb 03 '13
Here is a sneak peak at my redstone computer project. It's only 4-bit but it's getting quite large as I add more and more functions to it.
Most of the basic functions are there: Add, Sub, (N)AND, (N)OR, X(N)OR, Bitshift left or right.
There are four 4-bit RAM cells, and two registers for ALU inputs for a total of 3 bytes. Program memory is 32 11-bit lines.
This computer features conditional branching. You can jump to specified program lines when certain conditions are true. Example: IF A>B THEN JumpToLine 00101.
The user can set the program counter to any point and start running the computer from there. Or you can switch to direct input mode and just manually enter in instructions.
Displays keep you aware of the state of the program counter, the current instruction being executed, and the main 4-bit output from the computer.
There's still work to do, but after it's finished I'll try and get some better shots and hopefully a video if there is some interest.
Also, for those of you interested in redstone, there is a xbox specific redstone reddit at /r/redstone360. Check it out!