Welcome to my home page!
HTML snippet:
<h1>bf-repl</h1>

A <a href="https://en.m.wikipedia.org/wiki/Brainfuck">Brainfuck</a> interpreter with a REPL, written in x86-64 NASM assembly for Linux.
<br><br>
<table><tr><td><b>For a detailed tutorial on assembly language and building this interpreter, visit <a href="https://github.com/sidstuff/learnasm">sidstuff/learnasm</a>.</b></td></tr></table>
<br>
<small>Currently supports Brainfuck code and data upto 64 KiB each. Version using <code>malloc</code> coming soon.</small>

<h2>Usage</h2>

Clone the repository. To assemble from source, run </code>./bld</code>
<br><br>
To run a Brainfuck program, say <code>code.b</code>, run <code>./bf code.b</code>
<br><br>
To start the language shell, simply run <code>./bf</code>. To exit, press <kbd>⏎ Enter</kbd> when prompted for a command.

<blockquote>
<b>Note:</b>
<br><br>
Within a session, the position of the data pointer, as well as the data itself, is preserved across commands.
</blockquote>

Click <a href="http://brainfuck.org">here</a> for some sample Brainfuck programs and other information.

Discussion (0)

Sign up or sign in create discussions.

There are no discussions about this article yet.