Skip to content

EliasJuk/SystemOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❔ How to Build an Operating System

✨ What you need to get started

  • 📝 Text editor
  • 💻 Virtual machine
  • 💿 Rufus - Recommended rufus-2.18
  • 🔧 Binary compiler - Nasm
  • 💾 Data image file - Fergoraw
  • 📀 Tools for mounting ISO images

BOOT START

Boot


💾 Basic Boot

[ORG 0x7C00]

LOOP:
  jmp LOOP

times 510-($-$$) db 0
db 0x55
db 0xAA

❔ How to Build

To build, you will need the nasm program, go to the directory where the boot file is located and give the following command:

$ nasm boot.asm -f bin -o boot.bin

🔖 Define directives

Allocating Storage Space for Initialized Data

Directive Purpose Storage Space
DB Define Byte Allocates 1 byte
DW Define Word Allocates 2 bytes

🌎 Hello World!

HelloWorld

Tabela ansi com os caracteres em Decimal e Hexadecial passados para escrever um Hello World! na tela

Decimal Hexadecimal Caractere Decimal Hexadecimal Caractere
72 48 H 87 57 W
101 65 e 111 6F o
108 6C l 114 72 r
108 6C l 108 6C l
111 6F o 100 64 d
32 20 33 21 !

🌎 Welcome!

Welcome

About

Sistema Operacional

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors