Skip to content

A brainfuck interpreter purely written in AMD64 assembly.

Notifications You must be signed in to change notification settings

SarahIsWeird/ASMBF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASMBF

Important: AMD64 programs can also run on Intel machines! Don't be fooled by the name.

ASMBF is a brainfuck interpreter written in pure AMD64 assembly, solely utilizing Linux syscalls. libc isn't used! Due to being written in pure AMD64 assembly (not utilizing int 80h), this program can be run in the Windows Subsystem for Linux.

Right now, ASMBF only reads the brainfuck code from the console itself. Reading from a file will be added soon.

Compiling

$ nasm -f elf64 bf.asm
$ ld -m elf_x86_64 -o bf bf.o

Alternatively, a small script is provided. (Not a makefile, because this never was supposed to be a multifile project.)

$ ./build.sh

Usage

Simply run the program and enter the brainfuck code.

$ ./bf
Enter your brainfuck code:

For example:

$ ./bf
Enter your brainfuck code:
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.
Hello World!

About

A brainfuck interpreter purely written in AMD64 assembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published