OpenCores
URL https://opencores.org/ocsvn/openfire2/openfire2/trunk

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [vga/] [vga_5x7_fuente.c] - Rev 6

Compare with Previous | Blame | View Log

#include "vga.h"
 
/* fuente de 5x7 en vga de 640x480 --> 128 x 68 */
/* ---------------------------------------------- */
unsigned short bitmap_font_5x7[96 * 7] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 	/* 0x20 -espacio- */
0x01C0, 0x01C0, 0x01C0, 0x0000, 0x01C0, 0x0000, 0x0000, 	/* cada word es: 0 RGB RGB RGB RGB RGB */
0x0E38, 0x0E38, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 	/* siendo R=G=B, ocupa el doble de espacio */
0x0E38, 0x7FFF, 0x0E38, 0x7FFF, 0x0E38, 0x0000, 0x0000, 	/* pero ahorra muchos ciclos de reloj */
0x0FF8, 0x71C0, 0x0FF8, 0x01C7, 0x0FF8, 0x0000, 0x0000, 
0x7E07, 0x7E38, 0x01C0, 0x0E3F, 0x703F, 0x0000, 0x0000, 
0x0FC0, 0x0E38, 0x0FC0, 0x7038, 0x0FC7, 0x0000, 0x0000, 
0x01C0, 0x0E00, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
0x01C0, 0x0E00, 0x0E00, 0x0E00, 0x01C0, 0x0000, 0x0000, 
0x01C0, 0x0038, 0x0038, 0x0038, 0x01C0, 0x0000, 0x0000, 
0x71C7, 0x0FF8, 0x01C0, 0x0FF8, 0x71C7, 0x0000, 0x0000, 
0x01C0, 0x01C0, 0x7FFF, 0x01C0, 0x01C0, 0x0000, 0x0000, 
0x0000, 0x0000, 0x0000, 0x01F8, 0x0038, 0x01C0, 0x0000, 
0x0000, 0x0000, 0x7FFF, 0x0000, 0x0000, 0x0000, 0x0000, 
0x0000, 0x0000, 0x0000, 0x01F8, 0x01F8, 0x0000, 0x0000, 
0x0007, 0x0038, 0x01C0, 0x0E00, 0x7000, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x71C7, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x01C0, 0x0FC0, 0x01C0, 0x01C0, 0x0FF8, 0x0000, 0x0000, 
0x0FF8, 0x0007, 0x0FF8, 0x7000, 0x7FFF, 0x0000, 0x0000, 
0x0FF8, 0x0007, 0x0FF8, 0x0007, 0x0FF8, 0x0000, 0x0000, 
0x7038, 0x7038, 0x7FFF, 0x0038, 0x0038, 0x0000, 0x0000, 
0x7FF8, 0x7000, 0x7FF8, 0x0007, 0x7FF8, 0x0000, 0x0000, 
0x0FF8, 0x7000, 0x7FF8, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x7FFF, 0x0038, 0x01C0, 0x01C0, 0x01C0, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x0FF8, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x0FFF, 0x0007, 0x0FF8, 0x0000, 0x0000, 
0x0000, 0x01F8, 0x01F8, 0x0000, 0x01F8, 0x01F8, 0x0000, 
0x0000, 0x01F8, 0x01F8, 0x0000, 0x01F8, 0x0FC0, 0x0000, 
0x0038, 0x01C0, 0x0E00, 0x01C0, 0x0038, 0x0000, 0x0000, 
0x0000, 0x7FFF, 0x0000, 0x7FFF, 0x0000, 0x0000, 0x0000, 
0x0E00, 0x01C0, 0x0038, 0x01C0, 0x0E00, 0x0000, 0x0000, 
0x0FF8, 0x0007, 0x01F8, 0x0000, 0x01C0, 0x0000, 0x0000, 
0x0FF8, 0x71FF, 0x71FF, 0x7000, 0x0FF8, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x7FFF, 0x7007, 0x7007, 0x0000, 0x0000, 
0x7FF8, 0x7007, 0x7FF8, 0x7007, 0x7FF8, 0x0000, 0x0000, 
0x0FF8, 0x7000, 0x7000, 0x7000, 0x0FF8, 0x0000, 0x0000, 
0x7FF8, 0x7007, 0x7007, 0x7007, 0x7FF8, 0x0000, 0x0000, 
0x7FFF, 0x7000, 0x7FC0, 0x7000, 0x7FFF, 0x0000, 0x0000, 
0x7FFF, 0x7000, 0x7FF8, 0x7000, 0x7000, 0x0000, 0x0000, 
0x0FF8, 0x7000, 0x703F, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x7007, 0x7007, 0x7FFF, 0x7007, 0x7007, 0x0000, 0x0000, 
0x0FF8, 0x01C0, 0x01C0, 0x01C0, 0x0FF8, 0x0000, 0x0000, 
0x0007, 0x0007, 0x0007, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x7007, 0x7038, 0x7FC0, 0x7038, 0x7007, 0x0000, 0x0000, 
0x7000, 0x7000, 0x7000, 0x7000, 0x7FFF, 0x0000, 0x0000, 
0x7007, 0x7E3F, 0x71C7, 0x7007, 0x7007, 0x0000, 0x0000, 
0x7007, 0x7E07, 0x71C7, 0x703F, 0x7007, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x7007, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x7FF8, 0x7007, 0x7FF8, 0x7000, 0x7000, 0x0000, 0x0000, 
0x0FF8, 0x7007, 0x7007, 0x703F, 0x0FFF, 0x0000, 0x0000, 
0x7FF8, 0x7007, 0x7FF8, 0x7038, 0x7007, 0x0000, 0x0000, 
0x0FF8, 0x7000, 0x0FF8, 0x0007, 0x0FF8, 0x0000, 0x0000, 
0x7FFF, 0x01C0, 0x01C0, 0x01C0, 0x01C0, 0x0000, 0x0000, 
0x7007, 0x7007, 0x7007, 0x7007, 0x0FF8, 0x0000, 0x0000, 
0x7007, 0x7007, 0x0E38, 0x0E38, 0x01C0, 0x0000, 0x0000, 
0x7007, 0x7007, 0x71C7, 0x71C7, 0x0E38, 0x0000, 0x0000, 
0x7007, 0x0E38, 0x01C0, 0x0E38, 0x7007, 0x0000, 0x0000, 
0x7007, 0x0E38, 0x01C0, 0x01C0, 0x01C0, 0x0000, 0x0000, 
0x7FFF, 0x0038, 0x01C0, 0x0E00, 0x7FFF, 0x0000, 0x0000, 
0x0FF8, 0x0E00, 0x0E00, 0x0E00, 0x0FF8, 0x0000, 0x0000, 
0x7000, 0x0E00, 0x01C0, 0x0038, 0x0007, 0x0000, 0x0000, 
0x0FF8, 0x0038, 0x0038, 0x0038, 0x0FF8, 0x0000, 0x0000, 
0x01C0, 0x0E38, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 
0x0000, 0x0000, 0x0000, 0x0000, 0x7FFF, 0x0000, 0x0000, 
0x0E00, 0x0E00, 0x01C0, 0x0000, 0x0000, 0x0000, 0x0000, 
0x0000, 0x0FC0, 0x0038, 0x7FF8, 0x0FF8, 0x0000, 0x0000, 
0x7000, 0x7FC0, 0x7038, 0x7038, 0x7FC0, 0x0000, 0x0000, 
0x0000, 0x0FF8, 0x7000, 0x7000, 0x0FF8, 0x0000, 0x0000, 
0x0038, 0x0FF8, 0x7038, 0x7038, 0x0FF8, 0x0000, 0x0000, 
0x0000, 0x0FC0, 0x7FF8, 0x7000, 0x0FC0, 0x0000, 0x0000, 
0x01C0, 0x0E00, 0x7FC0, 0x0E00, 0x0E00, 0x0000, 0x0000, 
0x0000, 0x0FC0, 0x7038, 0x7038, 0x0FF8, 0x0038, 0x0FC0, 
0x7000, 0x7FC0, 0x7038, 0x7038, 0x7038, 0x0000, 0x0000, 
0x0000, 0x0FC0, 0x01C0, 0x01C0, 0x0FF8, 0x0000, 0x0000, 
0x0000, 0x01F8, 0x0038, 0x0038, 0x0038, 0x7038, 0x0FC0, 
0x7000, 0x7038, 0x7FC0, 0x7FC0, 0x7038, 0x0000, 0x0000, 
0x0FC0, 0x01C0, 0x01C0, 0x01C0, 0x0FF8, 0x0000, 0x0000, 
0x0000, 0x7E38, 0x71C7, 0x7007, 0x7007, 0x0000, 0x0000, 
0x0000, 0x7FC0, 0x7038, 0x7038, 0x7038, 0x0000, 0x0000, 
0x0000, 0x0FC0, 0x7038, 0x7038, 0x0FC0, 0x0000, 0x0000, 
0x0000, 0x7FC0, 0x7038, 0x7038, 0x7FC0, 0x7000, 0x7000, 
0x0000, 0x0FF8, 0x7038, 0x7038, 0x0FF8, 0x0038, 0x0038, 
0x0000, 0x7FC0, 0x7038, 0x7000, 0x7000, 0x0000, 0x0000, 
0x0000, 0x0FF8, 0x7E00, 0x01F8, 0x7FC0, 0x0000, 0x0000, 
0x01C0, 0x0FF8, 0x01C0, 0x01C0, 0x01C0, 0x0000, 0x0000, 
0x0000, 0x7038, 0x7038, 0x7038, 0x0FF8, 0x0000, 0x0000, 
0x0000, 0x7038, 0x7038, 0x71C0, 0x0E00, 0x0000, 0x0000, 
0x0000, 0x7007, 0x7007, 0x71C7, 0x0E38, 0x0000, 0x0000, 
0x0000, 0x7038, 0x0FC0, 0x0FC0, 0x7038, 0x0000, 0x0000, 
0x0000, 0x7038, 0x7038, 0x7038, 0x0FF8, 0x0038, 0x0FC0, 
0x0000, 0x7FF8, 0x01C0, 0x0E00, 0x7FF8, 0x0000, 0x0000, 
0x01C0, 0x0E00, 0x7FC0, 0x0E00, 0x01C0, 0x0000, 0x0000, 
0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 
0x01C0, 0x0038, 0x01FF, 0x0038, 0x01C0, 0x0000, 0x0000, 
0x0E00, 0x71C7, 0x0038, 0x0000, 0x0000, 0x0000, 0x0000, 
0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 0x7FFF, 	/* 0x7f --- */
};
 
/* ---------------------------------------------- */
unsigned short background_5x7 = 0x0000;		/* background */
unsigned short foreground_5x7 = 0x7FFF;		/* mascara para el color de los textos */
unsigned short colores_5x7[] = 			/* mascaras para los colores */
	{ 0x0000,  0x1249, 0x2492, 0x36DB, 0x4924, 0x5b6d, 0x6db6, 0x7fff };
unsigned short xpos_5x7 = 0;
unsigned short ypos_5x7 = 0;
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.