Git Product home page Git Product logo

writeyourownos's Introduction

OS_from_Scratch


The main objective of the project is to implement a bootable OS with the help of "How to Write an Operating System from Scratch?" by Nick Blundell.

The README is incomplete!!!! Please run the following from command line to get a demo of what it does :

$ nasm boot_sect.asm -f bin -o boot_sect.bin
$ sudo-apt get install qemu
$ qemu-system-x86_64 boot_sect.bin

(Optional) If you wish to see the binary contents of the boot_sector:

$ od -t x1 -A n boot_sect.bin

The boot_sector code(mostly in assembly language) is as follows :

  • boot_sect.asm :

    • The entry point to seize control of the Computer
    • The boot sector is implemented in protected mode.
    • The last two bytes of the 512-byte sector are set to the magic number 0xaa55, to indicate itself to BIOS
  • disk_load.asm :

    • Reading more data from the disk will be essential for boot-strapping our operating system,
    • Reading the first N sectors following the boot sector from a given disk
    • Reading from dh Sector of ch cylinder.
  • gdt.asm

    • The Global Descriptor Table
  • switch_to_pm.asm :

    • Switch off interrupts(CLI)
    • Load Global Descriptor Table(gdt)
    • Jump to Code Segment
    • Update Stack Pointer
    • Begin Protected Mode.
  • print_string.asm : printing a string in real mode

  • print_string_pm.asm : printing a string in protected mode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.