GithubHelp home page GithubHelp logo

dh00mk3tu / very-cool-os Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 269.71 MB

Lets build a Kernel from absolute scratch using Assembly & hopefully, C

Home Page: https://anirudhrath.dev/very-cool-os

Assembly 64.06% Shell 28.10% C 2.47% Makefile 5.37%
os assembly c bootsector low-level kernel qemu nasm gdt

very-cool-os's Introduction

very-cool-os

This repo is to test out making an operating system from absolute scratch and it is not a Linux based operating system. Practicing Assembly and stuff for Astra OS.

Once we've booted our Kernel, our objective will be to switch to C to print strings on the Screen instead of Assembly; we will then proceed further with C for I/O operations. The project is taking help and inspiration from multiple sources like books, videos, articles and forums. So it's hard to list them all but I will try my best to list them while I document this project.

I'm learning myself and I will make mistakes as well. But I will learn from them so every sort of input is great help, really.

With that said, god speed!


Updates

Update Date Title
Update 1: 06/04/2021 Writing Boot Sector.
Update 2: 09/04/2021 32 Bit Print Mode.
Update 3: 10/04/2021 GDT in Assembly.
Update 4: 20/04/2021 Entering 32 Bit Protected Mode.
Update 5: 21/04/2021 Cross-Compiler.
Update 6: 22/04/2021 C The Kernel.
Update 7: XY/04/2021 Soon...

Build Instructions

On Windows

./nasm.exe -f bin assembly_file.asm -o output_binfile.bin

I'm calling nasm as ./nasm.exe because I have not installed it globally. I installed both nasm & QEMU locally in the project directory. Next step is to emulate the image file in QEMU.

Again, since QEMU is also locally installed, cd into the QEMU directory. Once done, run the following command.

./qemu-system-x86_64 output_binfile.bin

On Linux

On Linux it is fairly simple because both NASM and QEMU are installed globally by the package manager.

nasm -f bin assembly_file.asm -o output_binfile.bin

Again, let's emulate the image file.

qemu-system -x86_64  output_binfile.bin

very-cool-os's People

Contributors

dh00mk3tu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

very-cool-os's Issues

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.