Talk:X++
interpret("or 1 [addr xor a ] outn"); //255
Is this really correct?
Or 1 sets the bool to 1. addr adds it to the right. stream = 1 xor a would do bool xor bit 0 which is 1 xor 1 which is 0. So, now the bool is 0 and you will jump back to [. now you execute addr which leads to stream = 10
So, the correct way for 255 is
OR 1 {ADDR}
[] and () may only be used for something like if
lets say
In [ /* Some code */ Or 1] //If 0 ( /* Some code */ And 0) //else if !zero
--(this comment by 81.62.111.214 at 14:51, 21 January 2010 UTC; please sign your comments with ~~~~)
- [ ] is not even executed. Since you set the bool to 1. The condition while(bool=0) { ... } ain't true. So...
- or 1 [addr xor a] outn does actually nothing. --(this comment by 81.62.111.214 at 14:59, 21 January 2010 UTC; please sign your comments with ~~~~)
- You can not use it for else. only if(false) and if(true). since you have to set the bool to true, to leave the while(false). -- Feuermonster 22:48, 22 January 2010 (UTC)
Maybe a typo?
Is the maybe on the first line of Instructions supposed to be "may be"? Right now it sounds like you are still unsure of what you want it to be. --(this comment by 160.7.251.165 at 02:02, 16 February 2010 UTC; please sign your comments with ~~~~)