The major goal of this project is to recreate some of the functionality from a DOS-like operating system.
- BIOS boot
- Basic memory initialization
- PS2 keyboard support (scan code conversion)
- VGA 40/80 column text mode console
- Commands (programs)
- cd
- pwd
- ls
- mkdir
- rm
- cp
- clear (C-L)
- man
- vi
- ed
For contributing fork this repository and then make your changes in the form of Pull Requests to the main repository
- make
- qemu (specifically
qemu-system-x86
) on debian based systems you can install this with the apt package manager - gcc
- nasm
- WSL (Windows only)
- just run
make
in the root directory of the project
- run
make qemu
in the root directory of the project
boot and immediately drop to a prompt. programs can be executed from the prompt. send signals by keyboard to do ✨stuff✨.
- If you get an error like
WARNING: Image format was not specified for 'mOS.bin' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted
Specify the 'raw' format explicitly to remove the restrictions.
This warning is normal
- When you run
make
and you get an error along the lines of/usr/bin/ld: cannot find crt1.o: No such file or directory
you likely only have the gcc for your current architecture that is 64bit. You need the 32bit support files. For that you can install them on debian based machines withsudo apt install gcc-multilib