Git Product home page Git Product logo

systemsos's Introduction

C and ASM Bootable OS

For the final year 'Systems Programming' module, we were tasked with developing a small bootable OS image, that will load a small library that would draw simple primitives to the screen.

The screen drawing functions were written in C. Below is a list of features of the library itself.

  • Setting the colour of an individual Pixel.
  • Drawing a line from one point to another, of a specific colour and thickness.
  • Drawing rectangular shapes that can be both filled and unfilled.
  • Clearing the screen to a particular colour.
  • Drawing filled and unfilled rounded shapes.

The screen drawing library can draw in both Ring 0 (direct access to video memory) and Ring 3 (protected mode), as it was a requirement set by the specification. To achieve this functionality, a custom interrupt table was created, that Ring 3 can use to call Ring 0 functions.

The bootloader, developed in ASM, was previously created in a seperate assignment. When the OS is booted, it enters Ring 3 before displayed the drawing functions.

This program requires an emulator such as Bochs to be run.

systemsos's People

Contributors

hubba368 avatar

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.