Making our OS - Filesystem

What is a filesystem and why need it?
A filesystem is the base for simple file input/output. The filesystem is the thing that stores files on your drive and read and writes to them. In Cosmos, we will be using the FAT (File Allocation Table) Filesystem. The FAT Filesystem is what Windows uses. It's recognizable by the lettered drives (in Cosmos, its numerical). Unix-based operating systems use a '/' as the root drive/directory. Now, let's get to adding the filesystem.

Adding the FileSystem
Right before your BeforeRun function, add the following lines of code: And in your BeforeRun function add this: Now you have a filesystem! When you boot your operating system, it will display a bunch of gibberish you don't need to know. That means it worked.

Next time we will make the basic command line for our operating system.