Skip to content

Qwen3-0.6B inference (12 KB), bare-metal bootable OS (22 KB), and from-scratch Mini-GPT trainer with live Braille TUI (32 KB) in 100% pure x86-64 NASM assembly. Zero C, zero libc, zero dependencies.

os: reserve the last VGA column so glyphs never touch the display edge

Life-Buoy9ab5b65d4b27
diff --git a/02-baremetal-os/drivers.asm b/02-baremetal-os/drivers.asm
index 4c88ab6..56251a6 100644
--- a/02-baremetal-os/drivers.asm
+++ b/02-baremetal-os/drivers.asm
@@ -199,7 +199,11 @@ vga_emit_ascii:
mov eax, [rel vga_col]
inc eax
- cmp eax, VGA_COLS
+ ; Keep the last 9-pixel VGA cell free: it ends exactly on the
+ ; active-display edge, so the final glyph sits on the screen border and
+ ; is the first thing lost to scaled/cropped captures (noVNC, QEMU zoom,
+ ; screen recordings). The boot banner already leaves the same margin.
+ cmp eax, VGA_COLS - 1
jb .store_col
xor eax, eax
mov [rel vga_col], eax