Kernel From Scratch by David A. Dalrymple.
From the post:
One of my three major goals for Hacker School was to create a bootable, 64-bit kernel image from scratch, using only
nasm
and my text editor. Well, folks, one down, two to go.
…
The NASM/x64 assembly code is listed below, with copious comments for your pleasure. It comprises 136 lines including comments; 75 lines with comments removed. You may wish to refer to the Intel® 64 Software Developers’ Manual (16.5MB PDF), especially if you’re interested in doing something similar yourself.
…
Just in case you are looking for something more challenging that dialogue mapping. 😉
Just like natural languages, computer languages can represent subjects that are not explicitly identified. Probably don’t want subject identity overhead that close to the metal but for debugging purposes it might be worth investigating.
I first saw this in a tweet by Julia Evans.