Skip to content

A brainfuck interpreter written in AT&T x86_64 assembly. The main.s, read_file.s, brainfuck.s, README.md & Makefile are all included. This was a bonus project for a CS BSC course in University.

Notifications You must be signed in to change notification settings

MrsHan23/brainfuck_interpreter_assembly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck

These files should help you get started with your brainfuck implementation. In specific, they take care of the fiddly bit with reading a file.

There are a few files in here for you:

  • main.s: This file contains the main function. It reads a file from a command line argument and passes it to your brainfuck implementation.

  • read_file.s: Holds a subroutine for reading the contents of a file. This subroutine is used by the main function in main.s.

  • brainfuck.s: This is where you should put your brainfuck implementation. In it you should define a brainfuck subroutine that takes a single argument: a string holding the code to execute.

  • Makefile: A file containing compilation information. If you have a working make, you can compile the code in this directory by simply running the command make.

Feel free to have a look at the different files, but keep in mind that all you need to do is:

  1. Edit brainfuck.s
  2. Run make
  3. Run ./brainfuck

About

A brainfuck interpreter written in AT&T x86_64 assembly. The main.s, read_file.s, brainfuck.s, README.md & Makefile are all included. This was a bonus project for a CS BSC course in University.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Assembly 97.8%
  • Makefile 2.2%