An open API service indexing awesome lists of open source software.

https://github.com/shikaan/x86-tiny-os

Tiny x86 real-mode OS
https://github.com/shikaan/x86-tiny-os

assembly retrocomputing x86

Last synced: about 1 year ago
JSON representation

Tiny x86 real-mode OS

Awesome Lists containing this project

README

          

x86 Tiny OS
---

This repository contains a tiny OS that can be run on x86 hardware.

## tl;dr

* Tiny real-mode OS in 16 bits x86 assembly;
* It's written as a bootloader. It's only 510 bytes in total;
* It's a toy. Don't use it for anything serious, please.

## Dependencies

* [GNU make](https://www.gnu.org/software/make/)
* [nasm](https://www.nasm.us)
* [bochs](https://bochs.sourceforge.io)

### MacOS

Using Homebrew

```sh
brew install nasm
brew install bochs
```

### Linux

Using your local package manager, for example in Debian

```sh
apt install nasm bochs
```

Please refer to the respective packages pages should you experience any problem.

## Run locally

```sh
make start
```

## Build locally

```sh
make boot.o
```

## Use it on a real device

For example using `dd`

```sh
sudo dd if=boot.o of=/dev/YOUR_DEVICE bs=512 count=1
```