-
Notifications
You must be signed in to change notification settings - Fork 0
How does it work ?
The Cythan machine is OISC machine: One Instruction Set Computer.
This mean that when you code in Cythan, you don't use command, because there is only one command. You use argument of the same command.
Most of OISC computer machine work by making one very complex command that is a group of all the instruction of most needed commands. Cythan have use one simple command, but the way the machine is archtectured allow this simple command to make everything need to simulate a Turing machine.
The machine is compose of one line of memory cells. There are no extern data use by the machine whitch is needed for working.
The memory cells goes from -infinity to +infinity.
Every positive memory cells is composed of two integers.
The first cell (0) is the pointer cell:
- the first integer is for the pointer position.
- The second integer is for the pointer increment.
Every negative memory cell is composed of one single integer.
On the start of the machine, the code will be place in the positive cells. A Cythan code is composed such by a list of tuple.
Exemple : 1,1;-1,-2;-1,-4;13,9;13,10;16,1;14,-3;-2,10;-1,-2;-3,11;12,12;12,12;17,0;12,12;-1,-1;0,16;19,1;18,1;100,-1;999,-1 is an OR logic gate.