Skip to content

A Brainfuck Interpreter based on an AVR Microcontroller

Notifications You must be signed in to change notification settings

stelzch/avr-brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainfuck-avr

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.

Assembling and uploading

Download gavrasm to assemble the binary. Then use avrdude to upload it to the microcontroller.

Design choices

  • 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.

About

A Brainfuck Interpreter based on an AVR Microcontroller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published