Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Hullu2000/BFTK
Program to compile Brainfuk to a working i686 kernel.
https://github.com/Hullu2000/BFTK
Last synced: 3 months ago
JSON representation
Program to compile Brainfuk to a working i686 kernel.
- Host: GitHub
- URL: https://github.com/Hullu2000/BFTK
- Owner: Hullu2000
- License: mit
- Created: 2015-08-09T10:29:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-15T07:46:27.000Z (over 9 years ago)
- Last Synced: 2023-03-03T10:41:50.174Z (almost 2 years ago)
- Language: C
- Homepage:
- Size: 125 KB
- Stars: 31
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
- AwesomeCompiler - BFTK
README
BFTK (BrainFuck To Kernel) version 1.1
BFTK is a Perl script that turns Brainfuck into assembly and
links it with a few C files to create a working kernel that
can be booted with GRUB or Qemu. Currently BFTK requires
Perl to run and i686-elf-gcc and Nasm to work. You should be
able to find them in the package repository of your distro.If you don't want to or can't install i686-elf-gcc you can
use the m32 branch instead.BFTK is free software released under the MIT license.
The C files are based on a few tutorials online. Mainly in
osdev.org. If I have used some of your code there that you
haven't released as public domain (as everything on osdev.org
should have been since 2011) please contact me and I'll fix
the licensing. But to be honest, why did you even put code in
a tutorial if you didn't want it to be used.INSTALLATION
BFTK doesn't need to be compiled since it's just a script.
It can be installed with the "make install" command and
uninstalled with the "make uninstall" command.USAGE
bftk /path/to/brainfuck/program [BG colour] [FG colour]
This will produce a file called bfos.bin. This is a kernel
that can be booted on any i686 (Pentium Pro) or newer system.
Boot loader not included. Use GRUB. You can also boot it in
Qemu with the command "qemu-system-x86_68 -kernel bfos.bin"To input colours use numbers:
BLACK = 0
BLUE = 1
GREEN = 2
CYAN = 3
RED = 4
MAGENTA = 5
BROWN = 6
LIGHT_GREY = 7
DARK_GREY = 8
LIGHT_BLUE = 9
LIGHT_GREEN = 10
LIGHT_CYAN = 11
LIGHT_RED = 12
LIGHT_MAGENTA = 13
LIGHT_BROWN = 14
WHITE = 15