Skip to content
forked from chocabloc/bf-repl

A Brainfuck interpreter with a REPL, written in x86-64 NASM assembly for Linux.

License

Notifications You must be signed in to change notification settings

sidstuff/bf-repl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bf-repl

A Brainfuck interpreter with a REPL, written in x86-64 NASM assembly for Linux.

For a detailed tutorial on assembly language and building this interpreter, visit sidstuff/learnasm.
Currently supports Brainfuck code and data upto 64 KiB each. Version using malloc coming soon.

Usage

Clone the repository. To assemble from source, run ./bld

To run a Brainfuck program, say code.b, run ./bf code.b

To start the language shell, simply run ./bf. To exit, press ⏎ Enter when prompted for a command.

Note

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

Click here for some sample Brainfuck programs and other information.

Languages

  • Assembly 96.3%
  • Shell 3.7%