A Brainf*ck interpreter written in pure x86-64 Assembly.
You can only build on Linux.
-
Install
yasm
,ld
, andmake
on your system.ld
comes with the GCC toolchain, so if you have that installed, you should be good. Installingyasm
(on Ubuntu):$ sudo apt install yasm
Installing
ld
andmake
(on Ubuntu):$ sudo apt install build-essential
-
Run the makefile in this directory. This can be done by typing
make
in the terminal. -
Run the output program with a .bf file as the argument. For example, if you had a file named helloworld.bf in the same directory as bfx86, you would run that file by entering
./bfx86 helloworld.bf
in the terminal. -
Witness the glory of Brainf*ck being interpreted in pure Assembly on your machine.
Why not?
Maybe.
- Wikipedia article on Brainf*ck. It's incredible.
- peterferrie/brainfuck on GitHub for proving it's possible. Theirs is much smaller, but mine is done in a way that I understand. :)
- c9x.me/x86 for providing an amazing reference for x86-64 instructions.