brainfucked

While i was surfing the internet for something interesting i found a programming language called BrainFucked i tried it and i liked it
it’s kinda challenging anyways i wrote a code that will just print “0×80″ on stdout

++++++++++[>+++>++++++++++>+++>+< <<<-]>++++++++++++++++++.>++++++++++++++++++++< <++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>.


That’s the code complicated right ? i’ll write it with comments

++++++++++			int cell 0 to 10
[
   >+++>++++++++++>+++>+< <<<-
]				loop to set the next four cells values
>++++++++++++++++++.		print   '0'
>++++++++++++++++++++.		print   'x'
< <++++++++++++++++++++++++++++++++++++++++++++++++++++++++.        print '8'
>.				print   print '0'


just compile it using BrainFucked compiler and run the .COM file it will print “0×80″ NICE :P

So What is BrainFucked ?

it’s an easy to learn yet complicated to use programming language. Author of the language is Urban Müller, who also wrote the first interpreter and compiler for Amiga systems. Brainfucked on the other hand is a powerful and efficient brainfuck compiler for Windows and MS-DOS systems.

How to code in it ?

it’s all about pointers that points to arrays and all you can do with them is manipulate them with eight different commands

Command Effect Same in C
+ Increase element under the pointer ++*p;
- Decrease element under the pointer –*p;
> Increase pointer p++;
< Decrease pointer p--;
[ Start loop while(*p) {
] End loop, when element is zero }
. Print ASCII code of element putchar(*p);
, Read character and store it *p=getchar();

There is further information about the language available under
http://en.wikipedia.org/wiki/Brainfuck