bfOS is a project of bootable brainfuck interpreter for x86 architecture. You can use it for developing your own operating system, in brainfuck ;)
This repository contains:
If you want to use an existing binary package, you can skip this step. First, you have to get a copy of this repository. You can download a zip file with source, or clone it with git.
$ git clone https://github.com/qwercik/bfOS
$ cd bfOSThen, you have to build a loader. It's relatively easy.
$ cd loader
$ makeYou should get a file loader.bin. It will be neccessary later.
Now, you have to build an image tool. You can do this in this way:
$ cd BfToFloppy
$ cmake .
$ makeYou should get a file BfToFloppy.
First, you must make a new working directory and copy BfToFloppy and loader.bin to it.
Now, you can create an example file with brainfuck code. You can name it on your own. I'll use the name code.bf. You can also use an example bfOS kernel (kernel/kernel.bf).
Then, type the following command:
$ ./BfToFloppy floppy.img code.bfIf you are using Windows, type in cmd:
BfToFloppy.exe floppy.img code.bfYou should get file floppy.img. It's floppy image file. You can boot from this in virtual machine, like Bochs, QEMU or VirtualBox. You can also write this to real floppy disk or pendrive and boot on your real hardware.
Good luck developing your OS in brainfuck ;)