Skip to content

gorpeliates/brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

Created by Ateş Görpelioğlu and Adam Wielinga

About

Brainfuck interpreter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published