Building an OS - part 1 - Hello world
January 26, 2019 · ProgrammingThis is the first entry in a series where I build a small operating system from scratch and try to explain each step along the way. The idea is to start from almost nothing, a bare machine that only knows how to load a few bytes off a disk, and slowly grow it into something that boots, prints to the screen, and eventually does something useful.
In this first part we keep it simple: writing a "hello world" straight in x86 assembly, assembling it into a 512-byte boot sector, and booting it inside an emulator so we can watch our own code run before any operating system is loaded. The full walkthrough is in the video below.