Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 894 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 894 Bytes

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.