Giter VIP home page Giter VIP logo

os's Introduction

OS

Simple 16 bit operating system. My goal is to achive:

  • errors management
  • simple programs (file manager,file editor, games, image viewer)
  • user's custom programs execution
  • dynamic memory management
  • change to protected mode
  • protection rings
  • multithreading

Documentation
All sectors in BIOS are counted from 1 and are 512B
Screenshot:
Screenshot

Commands

Command Description
$ Execute program $.com, see Programs
cls clear screen
pos print cursor position
key get information
mode $1 change video mode to $1
ls Print files and their sizes
map Show map of used sectors
rm $1 Remove $1 file

Programs

Programs installed on OS are in directory disk/
To call program.com with parameters enter "program parameters"

For developers

To add Your program to OS put .c file into directory disk/, it will be added as (your program name).com
Developers may use libraries in include/ and mustn't use anything in kernel/
Main function should have __start from types.h as attribute to be executed at first

SYSTEM Interruptions

0x20 is system IO interruption, see syscall() [it's masked in io.h]
0x21 is file system interruption, if error it will return negative value like errno see int0x21() [it's masked in file.h]

Program loading and executing

Program is loaded into address (CS+0x1000):0x100.
Bytes from (CS+0x1000):0 to (CS+0x1000):0xff are reserved for OS i.e:

  • 0x00 to 0x08 stores call function to 0x100
  • 0x80 to 0xff stores string of program's parameters

If size of program is $ sectors size, then on $*200+100 bytes is stored automatic return subprogram, it is executed when program don't end on it's own

os's People

Contributors

jaclav avatar

Stargazers

 avatar

Watchers

 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.