#OBJ_FILES = $(SRC_FILES:.asm=.obj)
#OBJ_FILES_FULL = $(foreach file, $(OBJ_FILES),$(OBJ_DIR)/$(file))
-
##########################################
/* */
/**********************************************/
-#include <linux/font.h>
+// #include <linux/font.h>
#define FONTDATAMAX 4096
-unsigned char fontdata_8x16[FONTDATAMAX] = {
+unsigned char fontdata[FONTDATAMAX] = {
/* 0 0x00 '^@' */
0x00, /* 00000000 */
};
/*
-struct font_desc font_vga_8x16 = {
+const struct font_desc font_vga_8x16 = {
VGA8x16_IDX,
"VGA8x16",
8,
-
-extern char fontdata_8x16[4096];
-
#include <stdio.h>
+extern unsigned char fontdata[4096];
+
signed short cb (unsigned char a, unsigned char b){
short result=a<<8;
result+=b;
int main (int argc, char ** argv){
int c;
int a;
- for (c=0; c<4096; c++) fontdata_8x16[c]=tw(fontdata_8x16[c]);
+ for (c=0; c<4096; c++) fontdata[c]=tw(fontdata[c]);
printf("\tSUBR\tFONT\n");
for (a=0; a<256; a++){
- char * fd =fontdata_8x16 + (a<<4);
+ char * fd =fontdata + (a<<4);
if (a==0) printf("FONT\t"); else printf("\t");
printf("DEC\t%i,%i,%i,%i\n\tDEC\t%i,%i,%i,%i\n",
cb(fd[0],fd[1]),cb(fd[2],fd[3]),cb(fd[4],fd[5]), cb(fd[6],fd[7]),