Browse Search Popular Register Upload Rules User list Login:
Search:
Marble Computer

Image:
screenshot of the scene

Author: Hendrik314

Group: Technical

Filesize: 114.74 kB

Date added: 2017-08-15

Rating: 6.5

Downloads: 3209

Views: 594

Comments: 3

Ratings: 4

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

This is the first scene I upload on Algobox. It is a mechanical, binary, Turing complete and freely programmable registermachine, powered by a marble.

It features 16x6 Bits of instruction storage and 4 8 Bit Registers.
The bits are the light grey boxes, that can shift slightly left or right or change the way of the marble.
The registers are counting registers. They can be incremented and decremented by the marble. This mechanism is an extended version of a mechanism that can be found several times on youtube.

One example: https://www.youtube.com/watch?v=GcDshWmhF4A

The first part the marble passes for every instruction is the decoder for the Instruction pointer, where it is directed to the current Instruction. The marble copies the instruction into the instruction register.
After that it passes the instruction decoder, which brings it to the instruction specific path.
The left path is for JUMPs. It just copies the instruction argument into the instruction pointer
The 4 paths next to it, each for one register, test, if those are ZERO.
The 4 paths on the right increment and decrement the registers.
At the end of each instruction (except JUMPs) the Instruction pointer is incremented, so the next line of code can be read.

The programme is entered with the fixated red squares, that change the marbles way. Red squares are logical ones, a missing square is a zero.
Instructions are:
00: Increment Register
01: Decrement Register
10: If Not Zero (Do next line only if the Register is not Zero, else skip it. To skip it, the instruction pointer is incremented by 2)
11: Unconditional Jump

The Registers are adressed with a binary number as well. They have to be written in the two lowest Bits (which are actually at the top) of the Argument.
Jump targets are 4 Bits long and also written in the Argument

To demonstrate the machine, I programmed it to calculate the Fibonacci Sequence. Honestly I never watched it reach more than 13, because it takes very very long to do anything. And the bigger the number the longer it takes. Maybe I make another computer with more instructions in the future.

I actually wanted to realize it without any script, but I didn't want the scene to become even bigger. So the marble is brought back to it's origin after every instruction with a little oncollide script and also the results are stored in a string with a script. The computer itself works without any script though.

I hope this explains it a bit. If something is not clear yet or you find a bug or you have a question or suggestion, please let me know. Thanks.
Last edited at 2017/08/15 22:39:39 by Hendrik314
Please log in to rate this scene
edit
Similar scenes
Title: 10 Marble Race
Rating: 5
Filesize: 214.8 kB
Downloads: 948
Comments: 0
Ratings: 1
Date added: 2025/02/08 16:01:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Computer Virus That Actually Freezes the Phun Computer
Rating: 5.3
Filesize: 16.56 kB
Downloads: 4547
Comments: 20
Ratings: 4
Date added: 2009/07/03 20:44:01
Made with: Phun
Rating: rated 5.3
download
Title: DaveTec Computer Re-Designed, windows 6t
Rating: 5.1111
Filesize: 78.75 kB
Downloads: 1625
Comments: 2
Ratings: 3
Date added: 2010/09/15 21:29:18
Made with: Algodoo before v1.8.5
Rating: rated 5.1
download
Title: Ford GT Race
Rating: 5.625
Filesize: 0.54 MB
Downloads: 1102
Comments: 1
Ratings: 2
Date added: 2009/06/11 00:13:16
Made with: Phun
Rating: rated 5.6
download
Title: Computer
Rating: 5.625
Filesize: 388.53 kB
Downloads: 34866
Comments: 6
Ratings: 2
Date added: 2022/04/14 09:23:07
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: TLC - The Limited Computer
Rating: 5.625
Filesize: 0.66 MB
Downloads: 3152
Comments: 5
Ratings: 2
Date added: 2022/03/21 13:05:31
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
No STACK? No STACK POINTER? OMG!


Ha Ha Ha Ha.... Just kidding. I am amazed about what you did even if it is not a complete computer with all of the capabilities of a real computer. Of course it is slow. Any mechanical device that operates based on the movement of rolling marbles is going to be slow...... VEEEEEEERRRRRRRY SSSSLLLLLLOOOOOOWWWWW! But the fact that it works at all, and the fact that it's so complex are the truly amazing things about it!

Great job! :tup:
Thanks, Xray:)
This is really cool