BrainFox
A downloadable tool
BrainFox is a Brainfuck interpreter that can be run on your GB (or emulator).
It allows to write a program of 7200 comands length (program memory) which operates with up to 5000 memory cells (data memory).
Here are all brainfuck commands:
Character | Meaning |
> | Increment the data pointer (to point to the next cell to the right). |
< | Decrement the data pointer (to point to the next cell to the left). |
Increment the byte at the data pointer. | |
- | Decrement the byte at the data pointer. |
. | Output the byte at the data pointer. |
, | Accept one byte of input, storing its value in the byte at the data pointer. |
] | If the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching ] command. |
[ | If the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching [ command. |
(Space) Does nothing, can be used to make program more readable, but still takes place in program memory |
And how to work with BrainFox:
Keys | Meaning |
D-pad | Enter < > - commands |
D-pad A | Enter [ ] . , commands |
D-pad Select | Move cursor |
B | Delete previous symbol (like Backspace) |
Start | Run/Stop the program |
Start Select | Clean program memory (do it when you run BrainFox the first time) |
Read manual to get the full information as well as useful tips and examples of code.
Contact me an [email protected] if you have troubles with BrainFox or want to show something you made with it.
Install instructions
Repack both files in .rar archive in any folder in your computer and run .gb file.
Or just download .gb only.
Comments
Log in with itch.io to leave a comment.
Hi! I tried to run it on VisualBoyAdvance emu, but it gives me the error "Unknown cartridge type 09"; instead, it works on BGB emu
this is cool. what kind of things can you program with it?
Exactly me -- not so many, I think. I'm not very good at BF. But in fact you can program everything that fits in memory. Maybe even a tiny game?..
That would be cool
This is really amazing..!! Never thought I would see the day this would be possible!