106
DNA - General / About stack
« on: April 02, 2007, 07:39:28 PM »
I'm trying to decipher some evolved dna and it seems to use stack in very, very complicated ways. I think it just puts some numbers in dna and uses them much later, so I'd like to know some things about stacks and about what you can or can't do in different parts in dna.
Wiki says that there's two stacks, correct me if I got anything wrong.
1. Conditional stack, which gets anded together, as far as I understand, at the next start or else command. I found some post in the forum that says that empty condition stack is considered true to all condition-commands.
2. Integer stack, which is zeroed after DNA execution. Empty stack is considered 0.
So the questions:
Does the anded conditions, 1 or 0, stay for the next conditional stack or is the stack considered empty, ie true to everything?
What happens to conditional stack if there is no start or else command before next conditions command?
When comparing a value to empty comditional stack, is it also considered true?
Is it possible to compare (or use any conditional commands like and or xor) in integer stack?
If not, what happens if you try to do it anyway?
Is it possible to do math in conditions?
What happens to store command when it's not between start, else and stop?
What happens to input between genes?
Wiki says that there's two stacks, correct me if I got anything wrong.
1. Conditional stack, which gets anded together, as far as I understand, at the next start or else command. I found some post in the forum that says that empty condition stack is considered true to all condition-commands.
2. Integer stack, which is zeroed after DNA execution. Empty stack is considered 0.
So the questions:
Does the anded conditions, 1 or 0, stay for the next conditional stack or is the stack considered empty, ie true to everything?
What happens to conditional stack if there is no start or else command before next conditions command?
When comparing a value to empty comditional stack, is it also considered true?
Is it possible to compare (or use any conditional commands like and or xor) in integer stack?
If not, what happens if you try to do it anyway?
Is it possible to do math in conditions?
What happens to store command when it's not between start, else and stop?
What happens to input between genes?