Skip to content

coldfunction/cocotiOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cocotiOS

A simple OS implementation for IA32

Prerequisites

  • QEMU simulator or bochs
  • I only know QEMU...
  • nasm compiler
  • dd tool

How to compile

$ cd boot
$ nasm -I ../include/ -o mbr.bin mbr.S
$ nasm -I ../include/ -o loader.bin loader.S
$ dd if=./mbr.bin of=../img/cocotiOS.img bs=512 count=1 conv=notrunc
$ dd if=./loader.bin of=../img/cocotiOS.img bs=512 count=1 seek=1 conv=notrunc
$ cd ../img/
$ qemu-system-x86_64 cocotiOS.img

Current results

Reference

  1. mikeos: write your own os
  2. wiki: int 10h
  3. x86 Assembly/Control Flow
  4. Writing a boot loader in Assembly and C