Skip to content

A Brainfuck interpreter with an REPL written in assembly

License

Notifications You must be signed in to change notification settings

chocabloc/bf-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bf-repl

A Brainfuck interpreter+REPL for x86_64 Linux, written in assembly.

Specifics

  • Supports program size upto 64 KiB and has 65536 cells.
  • Doesn't require any third-party libraries (not even a libc).
  • The minimal version (bf-min) is just 316 bytes! (WIP)
  • Can be used interactively or by loading the code from a file.

Build Instructions

Make sure nasm and binutils are installed. Clone the repository and run ./bld.

Alternatively, get the latest binary release from here.

Usage

Run ./bf for the REPL or ./bf <filename> to run code from a file. To exit, simply give it an empty command.

Note

Within a session, the position of the data pointer, as well as the data itself, is preserved across commands.

Extras

Click here for some sample Brainfuck programs and other information.

About

A Brainfuck interpreter with an REPL written in assembly

Resources

License

Stars

Watchers

Forks

Packages

No packages published