The X com_OS Operating System

Praneeth Vithanage
3 min readJun 15, 2019

--

How to built an simple operating system that runs in your browser

About

I used Ubuntu terminal to run my simple operating system .My Os name is Xcom os and this kernel is written in 16-bit x86 real mode assembly language.And there displays the hardware information.

How to create my Xcom_Os

First I download nasm and qemu . Because they need to run operating system on our Ubuntu OS terminal.

nasm can create flat binary files, usable to write boot loaders, read-only memory (ROM) images, and in various facets of OS development.

qemu can also do emulation for user-level processes, allowing applications compiled for one architecture to run on another.

Then I create a Kernel . kernel is responsible for memory management, process and task management, and disk management. The kernel connects the system hardware to the application software. I wrote the kernel file with assembly language after that I have to transform it into .bin file.

files in my os

source/ — I include the OS source code that need

source/bootload/ — Source to generate bootload.bin ,that is added to the disk image when building.

source/features/ — Components of the operating system such as keyboard and screen. The core kernel source file, which pulls in other source files and it includes source code which needs to display the hardware information.

source/kernel.asm —this is most important part of the the operating system.

programs/- The disk image is added all the Source code for programs

Bootloader

Bootloader is a piece of code that runs before any operating system is running.Bootloader are used to boot other operating systems, usually each operating system has a set of bootloaders specific for it.

In my os fragment of code that has to be present in the boot sector is the Bootloader.

source code is in this path : source/bootload/bootload.asm

After that I running my Xcom Os on qemu ,Successfully

--

--