A Brainfuck Interpreter for AVR Microcontrollers in just 118 words.
The goal was to write an interpreter that is as small as possible, uses 8-bit wide cells and supports all 8 brainfuck commands.
The current version was designed for the AVR ATmega8.
Download gavrasm to assemble the binary. Then use avrdude to upload it to the microcontroller.
- The interpreter expects the program to be stored in the EEPROM, starting at address 0. The ATmega8's EEPROM is 512 Bytes large.
- All cells are stored in the SRAM, the interpreter is currently limited to 512 cells. If you execute a
>
when on the last cell, you will end up on the first cell.