From e217b70bb7657077eadb080bc4c003c8670801b9 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Thu, 14 May 2020 19:18:18 +0000 Subject: [PATCH] Remove CP437 bitmap, i dont intend to use graphics mode for OS --- Makefile | 5 ----- bmp2font.c | 55 ----------------------------------------------------- cp437.bmp | Bin 2178 -> 0 bytes 3 files changed, 60 deletions(-) delete mode 100644 bmp2font.c delete mode 100644 cp437.bmp diff --git a/Makefile b/Makefile index b05fd49..38adf3a 100644 --- a/Makefile +++ b/Makefile @@ -35,11 +35,6 @@ utils/%: %.c mkdir -p utils $(CC) -o $@ $< -cp437.bin: cp437.bmp utils/bmp2font - utils/bmp2font $< $@ - -vga11.com: cp437.bin - # COM programs %.com: com/%.asm $(NASM) $(NASM_ARGS) -o $@ $< diff --git a/bmp2font.c b/bmp2font.c deleted file mode 100644 index cfef059..0000000 --- a/bmp2font.c +++ /dev/null @@ -1,55 +0,0 @@ -/* 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 -#include -#include -#include -#include -#include -#include -#include - -FILE* in; -FILE* out; -void *addr; - -void copyline(int c) { - uint8_t *ptr = addr + 0x82 + (128/8)*(127 - c); - int i; - for (i=0; i<16; i++) { - fputc(*ptr++, out); - } -} - -int main(int argc, char** argv) { - struct stat sbuf; - - in = fopen(argv[1], "r+"); - out = fopen(argv[2], "w"); - - fstat(fileno(in), &sbuf); - - if (sbuf.st_size != 2178) { - printf("File must be a 128x128 pixel 1 bit monochrome bmp\n"); - exit(1); - } - - addr = mmap(NULL, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fileno(in), 0); - - int i, j; - for(j=0; j<8; j++) { - for(i=0; i<16; i++) { - copyline(j+i*8); - } - } -} diff --git a/cp437.bmp b/cp437.bmp deleted file mode 100644 index 040991f45c974f275f0ff845325e34174d1308f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2178 zcmb7FPitH^5TCf<7AkB*F9I(ylzaeD!&;Pw4Y~BxOKC4Ti6p2w2)a<%3aY-iIpxp~ zP=A14a_%)CFsMBY$;}vcF?(_@A?(R{6rtCj-mcRmhnCJ;&C^daqtX0%+S^|~`iKU4 z1nw}7*W(7=zzhWWCm*lI24Eexzxe9=D*8WE?cS%p?}sHh8D67-=bYuas?(;ji~&5y z3&+EfGEz#Kl9VrYrlJ8129k9eMu-}r3G|{%Nej^50 z^;7557+szislqEyM)SOjj?aVi$#L5n{*$9K=TfxhEqJ1{TGJU`a3u}=wIX4SLk9KG(} zmJbffhgS&A;dOk-~thE3L&ae zmHS9A8*KeVPaKj!r?oS{D3Mm4MlCNCfpJ(QwY<6Z+^yb5EW6QExg_#PE~tcHMq~EH zh5Oi_l4a{rf}$DU{eY(t_{{OI3mTD|Pv;>sr^NMqtGH@kf`I2cbuus%MlPlmR)Y6+ zCZ=;g^-FQ-`O+ur35i9fgH`O*nPmz#ayD$0@Tvd{$AOnTRk&_|C1MxeOxpeeoMOlDV)+A^xPS*_6O%Zfl5FeP#r3 zNTIgmnfB61naC!)_#N>({>3QiDo(3>Bx9t;y@O}SPw~;OGx5efvcS3N%JOse{<5SL zB3tY38jJ71+LY2ow$VO#@C?}9J$sfeI7I7x%*cl+7r=u&GV)={RZ70v--W%f=GA2i zs_tJJ_BSt=*#9lprp|TF{w5OOC#Ww{<`A4fZ?VKhpHXmSL=nIOxge>|l-4Xd>9JEJ zA(Ilqb+MW#lcjJI<|Z1nDeOrxI?#`@&K|kN{^0+RsZ&KxCH%brK>rvku0xrXveiCf zu?YMf8QIiwnyT;R6u8g0*cEwKBI~%8OJEn0Gu0mYf>ga5w5j`pHtQ+Sdi{XFjyD>+ z%Wb_U2U={kw5!`jHu&0Z^|CvZcGtD7Y=w!oZ%UE&M~7=ymJ<86?G9Tz(*%VoZ~Dbn zV`ulMX(YaeTe3gikoMtW)n9vTTQpI?0eUYN@q~WvcXqU