Image:
 Author: Kutis96 Group: Default Filesize: 34.76 kB Date added: 2011-02-23 Rating: 5 Downloads: 681 Views: 951 Comments: 0 Ratings: 1 Times favored: 0 Made with: Algodoo before v1.8.5 Tags:
|
This is the most versatile architecture i ever made.
The PortexII contains infinite memory which is used to communicate with 'ports'.
the default port for display here is port1, the global default port for program is port0.
the commands are:
["NEW", x] creates port x (e.geom.portx = 0) for example ["NEW", 1] creates e.geom.port1 = 0 - 0 is the default value for NEW
["SET", x, y] sets port x to y (e.geom.portx = y) for example, ["SET", 1, "hello world"] does e.geom.port1 = "Hello world" - this sets the screen text to "Hello world"
["MOVE", from, to] copies the data from port 'from' to port 'to'
["ADD", from, to] adds data from port 'from' to port 'to'
["RESET"] - guess. init = 1
["GOTO", x] - executes program again from the line x
["AGAIN"] - executes program again and agian
["IF", s, t, u, v] - compares values between ports 's' and 't', and if they're same, it executes commands from line 'u' or if they're different, it executes commands from line 'v' |