Implementing a simple operating system using Assembly language to show hardware information of your computer.
“Osca OS” is a simple operating system written in Assembly language. The main task of this OS is to display the hardware information of your personal computer where you run this operating system.
Osca OS contains three separate windows following:
◾Welcome page- You can choose one from Menu or Exit. If you click on Menu button you will go to the menu window, otherwise, you can shut down the machine.
◾menu window -You can choose HD-I button to go to the hardware information display page or otherwise click back to go to the welcome page again.
◾Displaying hardware information- This is the page which displays hardware information. Press ESC to go back.
There most important files and directories on Osca OS:
source/ — entire OS source code.
source/bootload/ — Source to generate bootload.bin, that is added to the disk image when building.
source/kernel.asm — The core kernel source file .which pulls in other source files
source/features/ — Components of the operating system such as keyboard and screen.
programs/ — Source code for programs which is added to the disk image.
Pre-Requisites for building the Osca os
Nasm is an assembler that compiles assembly language code into machine language. So, we need to download this with the ubuntu terminal. Download this tool in your machine. The code is given below.
sudo apt-get install nasm
You can use an emulator/virtual machine to run Osca OS. So, Install qemu emulator on your machine. The code is given below for the installation.
sudo apt-get install qemu
You can download “Osca OS” from my GitHub Repository.
OscaOs a simple Operating System created from Assembly language to display Hardware information of your computer…
Building the Osca OS
Open Osca OS folder and open that location in the terminal and compile with the given code.
sudo bash ./build-linux.sh
Run the Osca Os in qemu emulator
Finally, type the given command in that same location on the terminal, OS will be turned on in qemu emulator.
sudo qemu-system-i386 -soundhw pcspk -drive format=raw,file=disk_images/OscaOS.flp,index=0,if=floppy