From 65be1051b34eeaee70b03980cc72c68d3a2fd38f Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Mon, 16 Mar 2020 17:24:16 +0000 Subject: [PATCH] bmp2font: explain --- bmp2font.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bmp2font.c b/bmp2font.c index d9a2066..cfef059 100644 --- a/bmp2font.c +++ b/bmp2font.c @@ -1,3 +1,13 @@ +/* This script os meant to convert a 256x256 pixel bitmap into an bitmap of + * 8x8 pixel characters. When deciding upon the output format, i had the + * video output of scanlines in mind. So there are 8 sections for each row + * of pixels for a character cell, each secton containing the the pixel line + * data of all 256 character codes. If you align this blob to 256-bytes, you + * quickly fetch the data by pointing bx to the begin of the section for the + * pixel line you are currently drawing, then set bl to the character value + * you want to print and dereference [bx]. + */ + #include #include #include