-
hello.s -- example of direct access to text-mode memory.
-
circles.s -- colorful circles.
-
boot.s -- "Hello, world" program that can be used inside boot sector.
Test the image using QEMU:
$ qemu-system-x86_64 -fda boot.img
cld, clear direction flag.lds, load register and DS register.les, load register and ES register.sed, set direction flag.stosb, store AL into ES:DI address. Increase DI by 1 (if direction flag is zero) or decrease DI by 1 (if direction flag is one).stosw, store AX into ES:DI address. Increase DI by 2 (if direction flag is zero) or decrease DI by 2 (if direction flag is one).