123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|400|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Readable BrainF*ck

Sat, 18 Aug 2007, 17:35
Phoenix
I was a bit bored, and then I saw someone mentioning BrainF*ck, which made me want to make my own version. Of course I didn't write a compiler, I don't have time for that! So I just made an interpreter, with readable commands. Quite fun to use, even if it's not entirely useful. It has some simple commands:

loop:x - Loops the following code x amount of times
endloop - where the loop ends
next:x - jumps x memory addresses forward. Look at it as variables in a numbered list. You start at 0, and next:7 takes you to the seventh element. If you use next:4 after that you arrive at #11.
prev:x - Opposite of next, obviously
inc:x - Increases the value of the current "variable" by x
dec:x - Opposite of inc
write - Writes the value of the current element onto the screen. The ASCII value of the element will be written.
wait - Waits for a key to be pressed
end - Exits the program

Nested loops aren't allowed, and you can use * instead of x to get the current loop number (but beware: loops count backwards).

How to compile: Create a file, call it whatever you want. Add the code to the file, and drag it onto Parser.exe. A file called "output.asm" will be generated, with some assembly code. Drag that file onto Compile.exe and "output.com" will be created. Launch that.

There are two examples included. The hello world example is really poor though See if you can make anything interesting, it's kinda limited and so is my imagination, so I couldn't come up with much.

Download here
Sat, 18 Aug 2007, 17:43
dna
Your Url is Bad
Sat, 18 Aug 2007, 17:52
Afr0
D'oh! Just copy the URL inside the [url] tag((almost) s)!

But, since I'm feeling nice and generous today -

Linky

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sun, 19 Aug 2007, 16:23
steve_ancell
I think I know why it is called BrainF*ck. I felt like I had a hole in my head after trying to learn it quite a while ago.
Sun, 19 Aug 2007, 21:54
Nolan
Readable Brainf*ck? That's an oxymoron, as far as I'm concerned.

-=-=-
nolandc.com
Mon, 20 Aug 2007, 01:04
Afr0
I think I know why it is called BrainF*ck. I felt like I had a hole in my head after trying to learn it quite a while ago.


Honestly, it isn't really that bad. But it borrows alot of array and memory concepts from C, so most Blitz guys will probably not feel at ease with it at first. But I don't think it's designed to be used for any kind of large scale development!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 20 Aug 2007, 07:16
oscar
readable brainf*ck? is that not a paradox?!?!?!?!?