meppu / fart

Brainfuck to 8086 machine instructions

Repository from Github https://github.commeppu/fartRepository from Github https://github.commeppu/fart

Fart

True brainfuck assembler that generates binary from source for DOS.

FART IN DOS

(assembled brainfuck runs on DOSBox)

Informations

  • Written in C99.
  • Can handle maximum 4096 loop. (you can modify it from source.)
  • Only has 4096 cell. (you can modify it from source.)
  • Designed for 8086.

Downloading

You can download pre-built fart binaries from github releases.

Compiling

Automatic Installation

Copy and paste following command to your terminal and it will compile from source and add output binary to /usr/bin folder.

curl -fsSL https://raw.githubusercontent.com/cart96/fart/main/install.sh | sh

Manual Installation

Go to src/fart/scripts and run build.bat or build.sh depend on your OS.

Usage

  • <...> = Required
  • [...] = Optional

You can use fart like fart <input file> [output file] this in command-line. If you don't pass output file, it will write output to A.COM.

  • fart e.bf euler.com
  • fart hello.b

Special Thanks

  • Thanks Gülce for helping me while debugging ❤️
  • Thanks Skeeto for making a DOS version of fart ❤️

License

Fart is licensed under the 3-Clause BSD License.

About

Brainfuck to 8086 machine instructions

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C 77.1%Language:Brainfuck 16.2%Language:Shell 5.6%Language:Batchfile 1.1%