Re: Computer with FileSystem collab
Posted: Wed Aug 04, 2010 9:06 am
I found lots of bugs here. 90% fixed...
Algodoo user forums
http://www.algodoo.com/forum/
In the scene description I wrote:Computer NG 2.5
Made by and for this Computer Collab
Features:
CPU:
CPU R4 (With heating script)
CPU Cooler (Made by Bronie12345)
Memory:
StorEx 30 Mini - Built in
Slot for HDD - Compatible with new bronie's one and with [url=http://www.algodoo.com/algobox/details.php?id=35794]StorEx[url]
Programming:
AHOX Basic R5
Programming references:
To programm the computer, select the StorEx Mini cover and move it to back. Now select the transparent box that is on the left side of the StorEx (It has got ControllerAcc = 1). Then click Appearance menu, and then click Text box. Now you're ready to be programmer.
Programming commands:
["PRINT", "Hello world"] - This will add Hello World on the screen
["CLS"] - Clears the screen
["GOTO", 2] - Goes to the programm command number 2 (Note: Commands are counted from zero, so the first command is 0th)
["WAIT", 10] - This will wait 10 ms before doing next command.
["CALC", 1+1] - This will save result into scene.my.calco variable. (Note: if you want to see the variable, use ["PRINT", scene.my.calco + ""] command.)
["KEY", "a", 2, 1] - If you will press A on the keyboard, it will go to command number 2, if not, it will go to 1. (Note: If you are lazy to write next GOTO on number 1 (in example), just replace 1 with number of next KEY or a number of this KEY command.)
Advanced commands:
["GOHW", 2] - This will go to HDD sector number 2
["HDSEL", 2] - This will select HDD in bay 2
["CUSTOM", scene.my.variable = something] - This executes thing inside this (Thyme, not BASIC)
If you l k like this -> , I have an idea for you. Experiment with the commands yourself, and learn about them.
Oh, and there's an example:
[["PRINT", "Hello World"], ["WAIT", 1000], ["PRINT", "
Again? Y/N"], ["KEY", "y", 5, 4], ["KEY", "n", 8, 3], ["CLS"], ["WAIT", 1000], ["GOTO", 1], ["CLS"], ["PRINT", "Hmm..."], ["END"]]
TO RUN EVERY PROGRAMM YOU MUST TO PRESS F2!!!
Made by and for this Computer Collab
Comment and rate please!!!
ENJOY!!!
I hope I'll see some programms i the comments in here
In desc. I]
An easily programmable computer with built-in display.
Now with repaired CPU (R2)
With example floppy. Before use press F2.
Features:
AHOX X7 R2 CPU
Built-In display with Text, Texture and texture matrix support
Keyboard
Floppy drive
Peripheral Interface (PI) connector
How can i programm it?
Put commands into a core box of the floppy inside the Appearance menu>Text and write commands inside "[[ here ]]" brackets.
But be careful! If something will went wrong, algodoo will fall!
What commands can i use?
["WRITE", "Hello world wrote: - This command will add "Hello World" to the display.
["CLEAR"] - Clears screen.
["TPIC", "wood.png"] - This will make monitor texture to wood.png .
["TMAT", [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]] - This will change texture matrix to [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
["RMAT"] - Resets monitor texture matrix to default.
["RPIC"] - Resets monitor texture.
["RESET"] - Restarts computer. Works like if you'll press F2.
["KEY", "y", 2, 1] - If you'll press key "Y", the command reading jumps to 2, if you won't press it it will jump to 1.
["CUSTOM", "scene.my.variable = 1"] - This will set your variable to value you wrote. (you can write here everything to execute, but it is important to write " to start and end like this.
["DELAY", 10] - This will wait 10 seconds until it will jump to next command.
["PI.INFO"] - This will show text from pin 1 of PI.
["PI.READ"] - This will show text from pin 2 of PI.
["PI.SEC", 25] - This will set PI pin 3 controllerAcc to 25.
["PI.WRITE", "Text to write"] - This will set PI pin 4 to text you wrote.
That's all :*) . If you look like this: :blink: try to experiment with some commands to get how it works yourself.
Enjoy! I hope you'll post some programmed floppies here!!! Comment and rate please!
Kutis 96 wrote:Euhmm... Anyoune interested?
Bronie12345 wrote:Ok, kutis, i've made an HDD, wich is better than that storex 30 thing, but you still don't use it..
This is my newest PC. It contains a infinite RAM Module and my new LX1 CPU. Commands to the CPU are all in thyme instead of arrays like kutis's. Commands are:
cpu.SET(data) Sets cpu register 0 to data. data can be a array, string, or even a function!
cpu.STORE(register,address) Stores the contents of the selected register to the address in memory.
cpu.LOAD(register, address) Gets the data from the address in memory and puts it in the specified register
cpu.EVAL(register) Runs eval on the registers contents.
cpu.COPY(register1,register2) Copies Register1 to Register2
On this PC the display gets text from memory address 3.
The floppy is autoloaded into memory address 4
Example Program is on floppy.
Simple Example:
cpu.SET("Hello World!"); Sets Register 0 to "Hello World!"
cpu.STORE(0,3) STORES "Hello World!" at memory address 3 (The displays text address)
Kutis 96 wrote:... I dont want to have you as a foe, i think youre good friend...