What is iHeadAche? iHeadAche is an interpreter for the BrainF*ck esoteric language. iHeadAche can also convert a BrainF*ck source code to an iziBasic source code for being then compiled with iziBasic.
iHeadAche was itself written in iziBasic for Palm. Its source code is to be found in the ZIP file you downloaded (please read the Installing iHeadAche paragraph).
BrainF*ck
BrainF*ck was created by Urban Mueller for the Amiga OS 2.0, and he wrote an assembler compiler which was only 240 bytes long! This tiny language has only 8 instructions (yes, only 8!) but it still is Turing complete, meaning that any computable calculation can be computed using it.
The BrainF*ck operators are:
< decrements the pointer
> increments the pointer
+ increments the pointed byte
- decrements the pointed byte
. outputs the pointed byte
, reads a byte from the input and stores it at pointed byte
[ jumps to matching ] if the pointed byte is null
] jumps to matching [ if the pointed byte is not null
Note: bytes (8 bits integers) can be replaced by 16 bits integers as an option in iHeadAche
Knowing this, the BrainF*ck source code for the classical 'Hello World' sample program, which does nothing else but to display 'Hello World' on the screen, is:
++++++++[>+++++++++<-]>.<+++++[>++++++<-]>-.+++++++..+++.<++++++++[>>++++<<-]>>.<<++++[>------<-]>.<++++[>++++++<-]>.+++.------.--------.>+.
This seems quite weird... But, do not be afraid by this first feeling, please read below!
Plenty of resources and web sites made by people who like BrainF*ck a lot (yes, this is possible!) are easily found on the internet. Just type in "brainfuck" (Drat it! I wrote it replacing the * character by the u letter!) in the search field of any search engine and you will be amazed by the number of returned links...
Compatibility
| Device: | All |
| OS: | 3.54.05.05.4 |
Download
| Version | File | Size |
|---|---|---|
| 1.0 | iheadache.zip | 92K |











comments