MBR Trans Flag
What it says on the tin.
Source code download
./boot.asm, compilation and launch instructions included in file.
Binary pre-compiled file
./boot.bin (not a 1-to-1 compiled version ;). To run this,
$ qemu-system-i386 -fda ./boot.bin
Screenshat
Source code listing
;; This thing is licensed under Creative Commons Zero v1.0 Universal, which essentially means ;; "Public Domain". (You can do anything you want without asking for permission). ;; ;; SPDX-License-Identifier: CC0-1.0 ;; ;; To compile ;; $ nasm -f bin -o boot.bin boot.asm ;; ;; To run ;; $ qemu-system-i386 -fda boot.bin ;; ;; You can also run this by burning it to a floppy or a hard drive but I am not to be held ;; responsible for any lost partitions, filesystems, or bootloaders. BITS 16 mov ax, 0xB800 mov es, ax xor di, di mov ax, 0xBB20 mov cx, 80*5 rep stosw mov ah, 0xDD mov cx, 80*5 rep stosw mov ah, 0xFF mov cx, 80*5 rep stosw mov ah, 0xDD mov cx, 80*5 rep stosw mov ah, 0xBB mov cx, 80*5 rep stosw halt: cli hlt jmp halt ; There's still ~463 bytes free here times 510-($-$$) db 0 dw 0xAA55