home *** CD-ROM | disk | FTP | other *** search
/ Dream 48 / Amiga_Dream_48.iso / LinuxPpc / contrib / vfix.c < prev    next >
C/C++ Source or Header  |  1998-01-19  |  35KB  |  821 lines

  1. /*
  2.  * vreset.c
  3.  *
  4.  * Initialize the VGA control registers to 80x25 text mode.
  5.  *
  6.  * Adapted from bootloader code   by:   Pat Kane, 1997
  7.  */
  8.  
  9. #define IO_BASE         ((unsigned char *)0x80000000)
  10. #define MEM_BASE     ((unsigned char *)0xC0000000)
  11. #define NREGS 54
  12. #define ENDMK  0xFFFF  /* End marker */
  13.  
  14. struct VgaRegs
  15. {
  16.     unsigned short io_port;
  17.     unsigned char  io_index;
  18.     unsigned char  io_value;
  19. };
  20.  
  21. struct RGBColors
  22. {
  23.   unsigned char r, g, b;
  24. };
  25.  
  26. outb(reg, data) 
  27.      unsigned short reg;
  28.      unsigned char  data;
  29. {              
  30.     *(volatile unsigned char *)(IO_BASE + (reg)) = (data);
  31.     asm volatile ("eieio");
  32. }
  33.  
  34. unsigned char
  35. inb(reg) 
  36.      unsigned short reg;
  37. {              
  38.     return ( *(volatile unsigned char *)(IO_BASE + (reg)) );
  39. }
  40.  
  41.  
  42. static inline
  43. outw(int port, unsigned short val)
  44. {
  45.    __asm__ volatile("eieio");
  46.    outb(port, val >> 8);
  47.    __asm__ volatile("eieio");
  48.    outb(port+1, val);
  49. }
  50.  
  51. main(int argc, char *argv[])
  52. {
  53.   int i, j;
  54.   int value;
  55.   extern struct VgaRegs CirrusTextRegs[];
  56.  
  57.  
  58.   outb(0x3CE, 0x06);
  59.   if ( ((inb(0x3CF) & 0x01) == 0) && argc < 2)
  60.   {
  61.     printf("Already in text mode [use -f to force].\n");
  62.     return;
  63.   }
  64.   printf("Initialize the VGA control registers to 80x25 text mode...\n");
  65.  
  66.   outw(0x3C4, 0x0120);         /* disable video              */
  67.   setTextRegs(CirrusTextRegs); /* initial register setup     */
  68.   setCirrusHdr(0);             /* set VGA compatibility mode */
  69.   setTextCLUT();               /* load color lookup table    */
  70.   loadFont(MEM_BASE);          /* load font                  */
  71.   setTextRegs(CirrusTextRegs); /* reload registers           */
  72.   clearTextScreen();
  73.   outw(0x3C4, 0x0100);         /* re-enable video            */
  74. }
  75.  
  76. clearTextScreen()
  77. {
  78.   int lines = 25;
  79.   int cols  = 80;
  80.   char *vidmem = (char *)0xC00B8000;
  81.   int i, j;
  82.   printf("Clear text screen...\n");    
  83.   for (i = 0;  i < lines;  i++)
  84.   {
  85.     for (j = 0;  j < cols;  j++)
  86.     {
  87.       vidmem[((i*cols)+j)*2] = 0x20;    /* fill with space character */
  88.       vidmem[((i*cols)+j)*2+1] = 0x07;  /* set bg & fg attributes */
  89.     }
  90.   }
  91. }
  92.  
  93. /*
  94.  * Write to Cirrus Attribute registers.  PEK'96
  95.  */
  96. writeAttr(index, data, videoOn)
  97.      unsigned char index;
  98.      unsigned char data;
  99.      unsigned char videoOn;   /* video on flag */
  100. {
  101.   unsigned char v;
  102.   v = inb(0x3da);   /* reset attr. address toggle */
  103.   if (videoOn)
  104.     outb(0x3c0, (index & 0x1F) | 0x20);
  105.   else
  106.     outb(0x3c0, (index & 0x1F));
  107.   outb(0x3c0, data);
  108. }
  109.  
  110. /*
  111.  * Write the Cirrus Hidden DAC register.   PEK'96
  112.  */
  113. setCirrusHdr(int v)
  114. {
  115.   unsigned char t;
  116.   unsigned char hdr = v;
  117.   t = inb(0x3C6);  t = inb(0x3C6);  t = inb(0x3C6);  t = inb(0x3C6);
  118.   outb(0x3C6, hdr);
  119. }
  120.  
  121. setTextRegs(struct VgaRegs *svp)
  122. {
  123.   int i;
  124.   extern unsigned char AC[];
  125.   /*
  126.    *  saved settings
  127.    */ 
  128.   while( svp->io_port != ENDMK )
  129.   {
  130.       outb(svp->io_port,   svp->io_index);
  131.       outb(svp->io_port+1, svp->io_value);
  132.       svp++; 
  133.   }
  134.  
  135.   outb(0x3c2, 0x67);  /* MISC */
  136.   outb(0x3c6, 0xff);  /* MASK */
  137.  
  138.   for ( i = 0; i < 0x10; i++)
  139.     writeAttr(i, AC[i], 0);  /* pallete */ 
  140.   writeAttr(0x10, 0x0c, 0);    /* text mode */
  141.   writeAttr(0x11, 0x00, 0);    /* overscan color (border) */
  142.   writeAttr(0x12, 0x0f, 0);    /* plane enable */
  143.   writeAttr(0x13, 0x08, 0);    /* pixel panning */
  144.   writeAttr(0x14, 0x00, 1);    /* color select; video on  */
  145. }
  146.  
  147. setTextCLUT()
  148. {
  149.   int i;
  150.   extern struct RGBColors TextCLUT[];
  151.  
  152.   printf("Reset Color Lookup Table...\n");
  153.   outb(0x3C6, 0xFF); 
  154.   i = inb(0x3C7);
  155.   outb(0x3C8, 0); 
  156.   i = inb(0x3C7);
  157.  
  158.   for ( i = 0; i < 256; i++)
  159.   {
  160.       outb(0x3C9, TextCLUT[i].r);
  161.       outb(0x3C9, TextCLUT[i].g);
  162.       outb(0x3C9, TextCLUT[i].b);
  163.   }
  164. }
  165.  
  166.  
  167.  
  168. long
  169. SwapBytes(long lv)   /* turn little endian into big indian long */
  170. {
  171.     long t;
  172.     t  = (lv&0x000000FF) << 24;
  173.     t |= (lv&0x0000FF00) << 8;
  174.     t |= (lv&0x00FF0000) >> 8;
  175.     t |= (lv&0xFF000000) >> 24;
  176.     return(t);
  177. }
  178.  
  179.  
  180. /*
  181.  * Default console text mode registers  used to reset
  182.  * graphics adapter.
  183.  *
  184.  * These values were obtained by booting 
  185.  * Linux and then dumping the registers.  PEK'96
  186.  */
  187.  
  188. struct VgaRegs CirrusTextRegs[NREGS+1] = {
  189. /*    port    index    value  */
  190.   /* SR Regs */
  191.     0x3c4,    0x1,    0x0,
  192.     0x3c4,    0x2,    0x3,
  193.     0x3c4,    0x3,    0x0,
  194.     0x3c4,    0x4,    0x2,
  195.     0x3c4,    0x6,    0x12,   /* unlock extension regs  */
  196.     0x3c4,    0x7,    0x0,
  197.  
  198.     0x3c4,    0xc,    0x5b,
  199.     0x3c4,    0xe,    0x6e,
  200.     0x3c4,    0xf,    0x1d,
  201.     0x3c4,    0x16,    0x71,
  202.     0x3c4,    0x17,    0x21,
  203.     0x3c4,    0x18,    0x0,
  204.     0x3c4,    0x1c,    0x2f,
  205.     0x3c4,    0x1e,    0x2a,
  206.     0x3c4,    0x1f,    0x1c,
  207.  
  208.    /* CR Regs */
  209.     0x3d4,    0x0,    0x5f,
  210.     0x3d4,    0x1,    0x4f,
  211.     0x3d4,    0x2,    0x50,
  212.     0x3d4,    0x3,    0x82,
  213.     0x3d4,    0x4,    0x55,
  214.     0x3d4,    0x5,    0x81,
  215.     0x3d4,    0x6,    0xbf,
  216.     0x3d4,    0x7,    0x1f,
  217.     0x3d4,    0x8,    0x00,
  218.     0x3d4,    0x9,    0x4f,
  219.     0x3d4,    0xa,    0x0d,
  220.     0x3d4,    0xb,    0x0e,
  221.     0x3d4,    0xc,    0x00,
  222.     0x3d4,    0xd,    0x00,
  223.     0x3d4,    0xe,    0x00,
  224.     0x3d4,    0xf,    0x00,
  225.     0x3d4,    0x10,    0x9c,
  226.     0x3d4,    0x11,    0x0e,   /* un-write protect CR7-CR0 */
  227.     0x3d4,    0x12,    0x8f,
  228.     0x3d4,    0x13,    0x28,
  229.     0x3d4,    0x14,    0x1f,
  230.     0x3d4,    0x15,    0x96,
  231.     0x3d4,    0x16,    0xb9,
  232.     0x3d4,    0x17,    0xa3,
  233.  
  234.     0x3d4,    0x1a,    0x0,
  235.     0x3d4,    0x1b,    0x0,
  236.  
  237.    /* GR Regs */
  238.     0x3ce,    0x0,    0x0,
  239.     0x3ce,    0x1,    0x0,
  240.     0x3ce,    0x2,    0x0,
  241.     0x3ce,    0x3,    0x0,
  242.     0x3ce,    0x4,    0x0,
  243.     0x3ce,    0x5,    0x10,
  244.     0x3ce,    0x6,    0xe,
  245.     0x3ce,    0x7,    0x0,
  246.     0x3ce,    0x8,    0xff,
  247.  
  248.     0x3ce,    0x9,    0x0,     /* extensions */
  249.     0x3ce,    0xa,    0x0,
  250.     0x3ce,    0xb,    0x0,
  251.     0x3ce,    0xe,    0x0,
  252.  
  253.         ENDMK
  254. };
  255.  
  256.  
  257. /*
  258.  * Default console text mode color table.
  259.  * These values were obtained by booting 
  260.  * Linux and then dumping the registers.  PEK'96
  261.  * 
  262.  */
  263. struct RGBColors TextCLUT[256] = 
  264. {
  265.   /*    red    green    blue  */
  266.     0x0,    0x0,    0x0,
  267.     0x0,    0x0,    0x2a,
  268.     0x0,    0x2a,    0x0,
  269.     0x0,    0x2a,    0x2a,
  270.     0x2a,    0x0,    0x0,
  271.     0x2a,    0x0,    0x2a,
  272.     0x2a,    0x2a,    0x0,
  273.     0x2a,    0x2a,    0x2a,
  274.     0x0,    0x0,    0x15,
  275.     0x0,    0x0,    0x3f,
  276.     0x0,    0x2a,    0x15,
  277.     0x0,    0x2a,    0x3f,
  278.     0x2a,    0x0,    0x15,
  279.     0x2a,    0x0,    0x3f,
  280.     0x2a,    0x2a,    0x15,
  281.     0x2a,    0x2a,    0x3f,
  282.     0x0,    0x15,    0x0,
  283.     0x0,    0x15,    0x2a,
  284.     0x0,    0x3f,    0x0,
  285.     0x0,    0x3f,    0x2a,
  286.     0x2a,    0x15,    0x0,
  287.     0x2a,    0x15,    0x2a,
  288.     0x2a,    0x3f,    0x0,
  289.     0x2a,    0x3f,    0x2a,
  290.     0x0,    0x15,    0x15,
  291.     0x0,    0x15,    0x3f,
  292.     0x0,    0x3f,    0x15,
  293.     0x0,    0x3f,    0x3f,
  294.     0x2a,    0x15,    0x15,
  295.     0x2a,    0x15,    0x3f,
  296.     0x2a,    0x3f,    0x15,
  297.     0x2a,    0x3f,    0x3f,
  298.     0x15,    0x0,    0x0,
  299.     0x15,    0x0,    0x2a,
  300.     0x15,    0x2a,    0x0,
  301.     0x15,    0x2a,    0x2a,
  302.     0x3f,    0x0,    0x0,
  303.     0x3f,    0x0,    0x2a,
  304.     0x3f,    0x2a,    0x0,
  305.     0x3f,    0x2a,    0x2a,
  306.     0x15,    0x0,    0x15,
  307.     0x15,    0x0,    0x3f,
  308.     0x15,    0x2a,    0x15,
  309.     0x15,    0x2a,    0x3f,
  310.     0x3f,    0x0,    0x15,
  311.     0x3f,    0x0,    0x3f,
  312.     0x3f,    0x2a,    0x15,
  313.     0x3f,    0x2a,    0x3f,
  314.     0x15,    0x15,    0x0,
  315.     0x15,    0x15,    0x2a,
  316.     0x15,    0x3f,    0x0,
  317.     0x15,    0x3f,    0x2a,
  318.     0x3f,    0x15,    0x0,
  319.     0x3f,    0x15,    0x2a,
  320.     0x3f,    0x3f,    0x0,
  321.     0x3f,    0x3f,    0x2a,
  322.     0x15,    0x15,    0x15,
  323.     0x15,    0x15,    0x3f,
  324.     0x15,    0x3f,    0x15,
  325.     0x15,    0x3f,    0x3f,
  326.     0x3f,    0x15,    0x15,
  327.     0x3f,    0x15,    0x3f,
  328.     0x3f,    0x3f,    0x15,
  329.     0x3f,    0x3f,    0x3f,
  330.     0x39,    0xc,    0x5,
  331.     0x15,    0x2c,    0xf,
  332.     0x26,    0x10,    0x3d,
  333.     0x29,    0x29,    0x38,
  334.     0x4,    0x1a,    0xe,
  335.     0x2,    0x1e,    0x3a,
  336.     0x3c,    0x25,    0x33,
  337.     0x3c,    0xc,    0x2c,
  338.     0x3f,    0x3,    0x2b,
  339.     0x1c,    0x9,    0x13,
  340.     0x25,    0x2a,    0x35,
  341.     0x1e,    0xa,    0x38,
  342.     0x24,    0x8,    0x3,
  343.     0x3,    0xe,    0x36,
  344.     0xc,    0x6,    0x2a,
  345.     0x26,    0x3,    0x32,
  346.     0x5,    0x2f,    0x33,
  347.     0x3c,    0x35,    0x2f,
  348.     0x2d,    0x26,    0x3e,
  349.     0xd,    0xa,    0x10,
  350.     0x25,    0x3c,    0x11,
  351.     0xd,    0x4,    0x2e,
  352.     0x5,    0x19,    0x3e,
  353.     0xc,    0x13,    0x34,
  354.     0x2b,    0x6,    0x24,
  355.     0x4,    0x3,    0xd,
  356.     0x2f,    0x3c,    0xc,
  357.     0x2a,    0x37,    0x1f,
  358.     0xf,    0x12,    0x38,
  359.     0x38,    0xe,    0x2a,
  360.     0x12,    0x2f,    0x19,
  361.     0x29,    0x2e,    0x31,
  362.     0x25,    0x13,    0x3e,
  363.     0x33,    0x3e,    0x33,
  364.     0x1d,    0x2c,    0x25,
  365.     0x15,    0x15,    0x5,
  366.     0x32,    0x25,    0x39,
  367.     0x1a,    0x7,    0x1f,
  368.     0x13,    0xe,    0x1d,
  369.     0x36,    0x17,    0x34,
  370.     0xf,    0x15,    0x23,
  371.     0x2,    0x35,    0xd,
  372.     0x15,    0x3f,    0xc,
  373.     0x14,    0x2f,    0xf,
  374.     0x19,    0x21,    0x3e,
  375.     0x27,    0x11,    0x2f,
  376.     0x38,    0x3f,    0x3c,
  377.     0x36,    0x2d,    0x15,
  378.     0x16,    0x17,    0x2,
  379.     0x1,    0xa,    0x3d,
  380.     0x1b,    0x11,    0x3f,
  381.     0x21,    0x3c,    0xd,
  382.     0x1a,    0x39,    0x3d,
  383.     0x8,    0xe,    0xe,
  384.     0x22,    0x21,    0x23,
  385.     0x1e,    0x30,    0x5,
  386.     0x1f,    0x22,    0x3d,
  387.     0x1e,    0x2f,    0xa,
  388.     0x0,    0x1c,    0xe,
  389.     0x0,    0x1c,    0x15,
  390.     0x0,    0x1c,    0x1c,
  391.     0x0,    0x15,    0x1c,
  392.     0x0,    0xe,    0x1c,
  393.     0x0,    0x7,    0x1c,
  394.     0xe,    0xe,    0x1c,
  395.     0x11,    0xe,    0x1c,
  396.     0x15,    0xe,    0x1c,
  397.     0x18,    0xe,    0x1c,
  398.     0x1c,    0xe,    0x1c,
  399.     0x1c,    0xe,    0x18,
  400.     0x1c,    0xe,    0x15,
  401.     0x1c,    0xe,    0x11,
  402.     0x1c,    0xe,    0xe,
  403.     0x1c,    0x11,    0xe,
  404.     0x1c,    0x15,    0xe,
  405.     0x1c,    0x18,    0xe,
  406.     0x1c,    0x1c,    0xe,
  407.     0x18,    0x1c,    0xe,
  408.     0x15,    0x1c,    0xe,
  409.     0x11,    0x1c,    0xe,
  410.     0xe,    0x1c,    0xe,
  411.     0xe,    0x1c,    0x11,
  412.     0xe,    0x1c,    0x15,
  413.     0xe,    0x1c,    0x18,
  414.     0xe,    0x1c,    0x1c,
  415.     0xe,    0x18,    0x1c,
  416.     0xe,    0x15,    0x1c,
  417.     0xe,    0x11,    0x1c,
  418.     0x14,    0x14,    0x1c,
  419.     0x16,    0x14,    0x1c,
  420.     0x18,    0x14,    0x1c,
  421.     0x1a,    0x14,    0x1c,
  422.     0x1c,    0x14,    0x1c,
  423.     0x1c,    0x14,    0x1a,
  424.     0x1c,    0x14,    0x18,
  425.     0x1c,    0x14,    0x16,
  426.     0x1c,    0x14,    0x14,
  427.     0x1c,    0x16,    0x14,
  428.     0x1c,    0x18,    0x14,
  429.     0x1c,    0x1a,    0x14,
  430.     0x1c,    0x1c,    0x14,
  431.     0x1a,    0x1c,    0x14,
  432.     0x18,    0x1c,    0x14,
  433.     0x16,    0x1c,    0x14,
  434.     0x14,    0x1c,    0x14,
  435.     0x14,    0x1c,    0x16,
  436.     0x14,    0x1c,    0x18,
  437.     0x14,    0x1c,    0x1a,
  438.     0x14,    0x1c,    0x1c,
  439.     0x14,    0x1a,    0x1c,
  440.     0x14,    0x18,    0x1c,
  441.     0x14,    0x16,    0x1c,
  442.     0x0,    0x0,    0x10,
  443.     0x4,    0x0,    0x10,
  444.     0x8,    0x0,    0x10,
  445.     0xc,    0x0,    0x10,
  446.     0x10,    0x0,    0x10,
  447.     0x10,    0x0,    0xc,
  448.     0x10,    0x0,    0x8,
  449.     0x10,    0x0,    0x4,
  450.     0x10,    0x0,    0x0,
  451.     0x10,    0x4,    0x0,
  452.     0x10,    0x8,    0x0,
  453.     0x10,    0xc,    0x0,
  454.     0x10,    0x10,    0x0,
  455.     0xc,    0x10,    0x0,
  456.     0x8,    0x10,    0x0,
  457.     0x4,    0x10,    0x0,
  458.     0x0,    0x10,    0x0,
  459.     0x0,    0x10,    0x4,
  460.     0x0,    0x10,    0x8,
  461.     0x0,    0x10,    0xc,
  462.     0x0,    0x10,    0x10,
  463.     0x0,    0xc,    0x10,
  464.     0x0,    0x8,    0x10,
  465.     0x0,    0x4,    0x10,
  466.     0x8,    0x8,    0x10,
  467.     0xa,    0x8,    0x10,
  468.     0xc,    0x8,    0x10,
  469.     0xe,    0x8,    0x10,
  470.     0x10,    0x8,    0x10,
  471.     0x10,    0x8,    0xe,
  472.     0x10,    0x8,    0xc,
  473.     0x10,    0x8,    0xa,
  474.     0x10,    0x8,    0x8,
  475.     0x10,    0xa,    0x8,
  476.     0x10,    0xc,    0x8,
  477.     0x10,    0xe,    0x8,
  478.     0x10,    0x10,    0x8,
  479.     0xe,    0x10,    0x8,
  480.     0xc,    0x10,    0x8,
  481.     0xa,    0x10,    0x8,
  482.     0x8,    0x10,    0x8,
  483.     0x8,    0x10,    0xa,
  484.     0x8,    0x10,    0xc,
  485.     0x8,    0x10,    0xe,
  486.     0x8,    0x10,    0x10,
  487.     0x8,    0xe,    0x10,
  488.     0x8,    0xc,    0x10,
  489.     0x8,    0xa,    0x10,
  490.     0xb,    0xb,    0x10,
  491.     0xc,    0xb,    0x10,
  492.     0xd,    0xb,    0x10,
  493.     0xf,    0xb,    0x10,
  494.     0x10,    0xb,    0x10,
  495.     0x10,    0xb,    0xf,
  496.     0x10,    0xb,    0xd,
  497.     0x10,    0xb,    0xc,
  498.     0x10,    0xb,    0xb,
  499.     0x10,    0xc,    0xb,
  500.     0x10,    0xd,    0xb,
  501.     0x10,    0xf,    0xb,
  502.     0x10,    0x10,    0xb,
  503.     0xf,    0x10,    0xb,
  504.     0xd,    0x10,    0xb,
  505.     0xc,    0x10,    0xb,
  506.     0xb,    0x10,    0xb,
  507.     0xb,    0x10,    0xc,
  508.     0xb,    0x10,    0xd,
  509.     0xb,    0x10,    0xf,
  510.     0xb,    0x10,    0x10,
  511.     0xb,    0xf,    0x10,
  512.     0xb,    0xd,    0x10,
  513.     0xb,    0xc,    0x10,
  514.     0x0,    0x0,    0x0,
  515.     0x0,    0x0,    0x0,
  516.     0x0,    0x0,    0x0,
  517.     0x0,    0x0,    0x0,
  518.     0x0,    0x0,    0x0,
  519.     0x0,    0x0,    0x0,
  520.     0x0,    0x0,    0x0
  521. };
  522.  
  523. unsigned char AC[21] = {
  524.     0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07, 
  525.     0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F, 
  526.     0x0C, 0x00, 0x0F, 0x08, 0x00};
  527.  
  528.  
  529. /* 
  530.  * the following font table is from "iso_font.h"
  531.  */
  532. static const unsigned char font[] = {
  533. /* 0x00 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  534. /* 0x01 */ 0x00,0x00,0x7E,0x81,0xA5,0x81,0x81,0xBD,0x99,0x81,0x81,0x7E,0x00,0x00,0x00,0x00,
  535. /* 0x02 */ 0x00,0x00,0x7E,0xFF,0xDB,0xFF,0xFF,0xC3,0xC3,0xE7,0xFF,0x7E,0x00,0x00,0x00,0x00,
  536. /* 0x03 */ 0x00,0x00,0x00,0x00,0x6C,0xFE,0xFE,0xFE,0xFE,0x7C,0x38,0x10,0x00,0x00,0x00,0x00,
  537. /* 0x04 */ 0x00,0x00,0x00,0x00,0x10,0x38,0x7C,0xFE,0x7C,0x38,0x10,0x00,0x00,0x00,0x00,0x00,
  538. /* 0x05 */ 0x00,0x00,0x00,0x18,0x3C,0x3C,0xE7,0xE7,0xE7,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  539. /* 0x06 */ 0x00,0x00,0x00,0x18,0x3C,0x7E,0xFF,0xFF,0x7E,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  540. /* 0x07 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x3C,0x3C,0x18,0x00,0x00,0x00,0x00,0x00,0x00,
  541. /* 0x08 */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xE7,0xC3,0xC3,0xE7,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  542. /* 0x09 */ 0x00,0x00,0x00,0x00,0x00,0x3C,0x66,0x42,0x42,0x66,0x3C,0x00,0x00,0x00,0x00,0x00,
  543. /* 0x0A */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xC3,0x99,0xBD,0xBD,0x99,0xC3,0xFF,0xFF,0xFF,0xFF,0xFF,
  544. /* 0x0B */ 0x00,0x00,0x3E,0x0E,0x1A,0x32,0x78,0xCC,0xCC,0xCC,0xCC,0x78,0x00,0x00,0x00,0x00,
  545. /* 0x0C */ 0x00,0x00,0x3C,0x66,0x66,0x66,0x66,0x3C,0x18,0x7E,0x18,0x18,0x00,0x00,0x00,0x00,
  546. /* 0x0D */ 0x00,0x00,0x30,0x38,0x3C,0x36,0x33,0x30,0x30,0x70,0xF0,0xE0,0x00,0x00,0x00,0x00,
  547. /* 0x0E */ 0x00,0x00,0x7F,0x63,0x7F,0x63,0x63,0x63,0x63,0x67,0xE7,0xE6,0xC0,0x00,0x00,0x00,
  548. /* 0x0F */ 0x00,0x00,0x00,0x18,0x18,0xDB,0x3C,0xE7,0x3C,0xDB,0x18,0x18,0x00,0x00,0x00,0x00,
  549. /* 0x10 */ 0x00,0x80,0xC0,0xE0,0xF0,0xF8,0xFE,0xF8,0xF0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x00,
  550. /* 0x11 */ 0x00,0x02,0x06,0x0E,0x1E,0x3E,0xFE,0x3E,0x1E,0x0E,0x06,0x02,0x00,0x00,0x00,0x00,
  551. /* 0x12 */ 0x00,0x00,0x18,0x3C,0x7E,0x18,0x18,0x18,0x7E,0x3C,0x18,0x00,0x00,0x00,0x00,0x00,
  552. /* 0x13 */ 0x00,0x00,0x66,0x66,0x66,0x66,0x66,0x66,0x66,0x00,0x66,0x66,0x00,0x00,0x00,0x00,
  553. /* 0x14 */ 0x00,0x00,0x7F,0xDB,0xDB,0xDB,0x7B,0x1B,0x1B,0x1B,0x1B,0x1B,0x00,0x00,0x00,0x00,
  554. /* 0x15 */ 0x00,0x7C,0xC6,0x60,0x38,0x6C,0xC6,0xC6,0x6C,0x38,0x0C,0xC6,0x7C,0x00,0x00,0x00,
  555. /* 0x16 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xFE,0xFE,0xFE,0x00,0x00,0x00,0x00,
  556. /* 0x17 */ 0x00,0x00,0x18,0x3C,0x7E,0x18,0x18,0x18,0x7E,0x3C,0x18,0x7E,0x00,0x00,0x00,0x00,
  557. /* 0x18 */ 0x00,0x00,0x18,0x3C,0x7E,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00,
  558. /* 0x19 */ 0x00,0x00,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x7E,0x3C,0x18,0x00,0x00,0x00,0x00,
  559. /* 0x1A */ 0x00,0x00,0x00,0x00,0x00,0x18,0x0C,0xFE,0x0C,0x18,0x00,0x00,0x00,0x00,0x00,0x00,
  560. /* 0x1B */ 0x00,0x00,0x00,0x00,0x00,0x30,0x60,0xFE,0x60,0x30,0x00,0x00,0x00,0x00,0x00,0x00,
  561. /* 0x1C */ 0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0xC0,0xC0,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,
  562. /* 0x1D */ 0x00,0x00,0x00,0x00,0x00,0x28,0x6C,0xFE,0x6C,0x28,0x00,0x00,0x00,0x00,0x00,0x00,
  563. /* 0x1E */ 0x00,0x00,0x00,0x00,0x10,0x38,0x38,0x7C,0x7C,0xFE,0xFE,0x00,0x00,0x00,0x00,0x00,
  564. /* 0x1F */ 0x00,0x00,0x00,0x00,0xFE,0xFE,0x7C,0x7C,0x38,0x38,0x10,0x00,0x00,0x00,0x00,0x00,
  565. /* 0x20 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  566. /* 0x21 */ 0x00,0x00,0x18,0x3C,0x3C,0x3C,0x18,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00,0x00,
  567. /* 0x22 */ 0x00,0x66,0x66,0x66,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  568. /* 0x23 */ 0x00,0x00,0x00,0x6C,0x6C,0xFE,0x6C,0x6C,0x6C,0xFE,0x6C,0x6C,0x00,0x00,0x00,0x00,
  569. /* 0x24 */ 0x18,0x18,0x7C,0xC6,0xC2,0xC0,0x7C,0x06,0x06,0x86,0xC6,0x7C,0x18,0x18,0x00,0x00,
  570. /* 0x25 */ 0x00,0x00,0x00,0x00,0xC2,0xC6,0x0C,0x18,0x30,0x60,0xC6,0x86,0x00,0x00,0x00,0x00,
  571. /* 0x26 */ 0x00,0x00,0x38,0x6C,0x6C,0x38,0x76,0xDC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  572. /* 0x27 */ 0x00,0x30,0x30,0x30,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  573. /* 0x28 */ 0x00,0x00,0x0C,0x18,0x30,0x30,0x30,0x30,0x30,0x30,0x18,0x0C,0x00,0x00,0x00,0x00,
  574. /* 0x29 */ 0x00,0x00,0x30,0x18,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x18,0x30,0x00,0x00,0x00,0x00,
  575. /* 0x2A */ 0x00,0x00,0x00,0x00,0x00,0x66,0x3C,0xFF,0x3C,0x66,0x00,0x00,0x00,0x00,0x00,0x00,
  576. /* 0x2B */ 0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x7E,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00,
  577. /* 0x2C */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x18,0x30,0x00,0x00,0x00,
  578. /* 0x2D */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  579. /* 0x2E */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,
  580. /* 0x2F */ 0x00,0x00,0x00,0x00,0x02,0x06,0x0C,0x18,0x30,0x60,0xC0,0x80,0x00,0x00,0x00,0x00,
  581. /* 0x30 */ 0x00,0x00,0x38,0x6C,0xC6,0xC6,0xD6,0xD6,0xC6,0xC6,0x6C,0x38,0x00,0x00,0x00,0x00,
  582. /* 0x31 */ 0x00,0x00,0x18,0x38,0x78,0x18,0x18,0x18,0x18,0x18,0x18,0x7E,0x00,0x00,0x00,0x00,
  583. /* 0x32 */ 0x00,0x00,0x7C,0xC6,0x06,0x0C,0x18,0x30,0x60,0xC0,0xC6,0xFE,0x00,0x00,0x00,0x00,
  584. /* 0x33 */ 0x00,0x00,0x7C,0xC6,0x06,0x06,0x3C,0x06,0x06,0x06,0xC6,0x7C,0x00,0x00,0x00,0x00,
  585. /* 0x34 */ 0x00,0x00,0x0C,0x1C,0x3C,0x6C,0xCC,0xFE,0x0C,0x0C,0x0C,0x1E,0x00,0x00,0x00,0x00,
  586. /* 0x35 */ 0x00,0x00,0xFE,0xC0,0xC0,0xC0,0xFC,0x06,0x06,0x06,0xC6,0x7C,0x00,0x00,0x00,0x00,
  587. /* 0x36 */ 0x00,0x00,0x38,0x60,0xC0,0xC0,0xFC,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  588. /* 0x37 */ 0x00,0x00,0xFE,0xC6,0x06,0x06,0x0C,0x18,0x30,0x30,0x30,0x30,0x00,0x00,0x00,0x00,
  589. /* 0x38 */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0x7C,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  590. /* 0x39 */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0x7E,0x06,0x06,0x06,0x0C,0x78,0x00,0x00,0x00,0x00,
  591. /* 0x3A */ 0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x00,
  592. /* 0x3B */ 0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x18,0x18,0x30,0x00,0x00,0x00,0x00,
  593. /* 0x3C */ 0x00,0x00,0x00,0x06,0x0C,0x18,0x30,0x60,0x30,0x18,0x0C,0x06,0x00,0x00,0x00,0x00,
  594. /* 0x3D */ 0x00,0x00,0x00,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  595. /* 0x3E */ 0x00,0x00,0x00,0x60,0x30,0x18,0x0C,0x06,0x0C,0x18,0x30,0x60,0x00,0x00,0x00,0x00,
  596. /* 0x3F */ 0x00,0x00,0x7C,0xC6,0xC6,0x0C,0x18,0x18,0x18,0x00,0x18,0x18,0x00,0x00,0x00,0x00,
  597. /* 0x40 */ 0x00,0x00,0x00,0x7C,0xC6,0xC6,0xDE,0xDE,0xDE,0xDC,0xC0,0x7C,0x00,0x00,0x00,0x00,
  598. /* 0x41 */ 0x00,0x00,0x10,0x38,0x6C,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  599. /* 0x42 */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x66,0x66,0x66,0x66,0xFC,0x00,0x00,0x00,0x00,
  600. /* 0x43 */ 0x00,0x00,0x3C,0x66,0xC2,0xC0,0xC0,0xC0,0xC0,0xC2,0x66,0x3C,0x00,0x00,0x00,0x00,
  601. /* 0x44 */ 0x00,0x00,0xF8,0x6C,0x66,0x66,0x66,0x66,0x66,0x66,0x6C,0xF8,0x00,0x00,0x00,0x00,
  602. /* 0x45 */ 0x00,0x00,0xFE,0x66,0x62,0x68,0x78,0x68,0x60,0x62,0x66,0xFE,0x00,0x00,0x00,0x00,
  603. /* 0x46 */ 0x00,0x00,0xFE,0x66,0x62,0x68,0x78,0x68,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00,
  604. /* 0x47 */ 0x00,0x00,0x3C,0x66,0xC2,0xC0,0xC0,0xDE,0xC6,0xC6,0x66,0x3A,0x00,0x00,0x00,0x00,
  605. /* 0x48 */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  606. /* 0x49 */ 0x00,0x00,0x3C,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  607. /* 0x4A */ 0x00,0x00,0x1E,0x0C,0x0C,0x0C,0x0C,0x0C,0xCC,0xCC,0xCC,0x78,0x00,0x00,0x00,0x00,
  608. /* 0x4B */ 0x00,0x00,0xE6,0x66,0x66,0x6C,0x78,0x78,0x6C,0x66,0x66,0xE6,0x00,0x00,0x00,0x00,
  609. /* 0x4C */ 0x00,0x00,0xF0,0x60,0x60,0x60,0x60,0x60,0x60,0x62,0x66,0xFE,0x00,0x00,0x00,0x00,
  610. /* 0x4D */ 0x00,0x00,0xC6,0xEE,0xFE,0xFE,0xD6,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  611. /* 0x4E */ 0x00,0x00,0xC6,0xE6,0xF6,0xFE,0xDE,0xCE,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  612. /* 0x4F */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  613. /* 0x50 */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x60,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00,
  614. /* 0x51 */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xD6,0xDE,0x7C,0x0C,0x0E,0x00,0x00,
  615. /* 0x52 */ 0x00,0x00,0xFC,0x66,0x66,0x66,0x7C,0x6C,0x66,0x66,0x66,0xE6,0x00,0x00,0x00,0x00,
  616. /* 0x53 */ 0x00,0x00,0x7C,0xC6,0xC6,0x60,0x38,0x0C,0x06,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  617. /* 0x54 */ 0x00,0x00,0x7E,0x7E,0x5A,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  618. /* 0x55 */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  619. /* 0x56 */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x6C,0x38,0x10,0x00,0x00,0x00,0x00,
  620. /* 0x57 */ 0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xD6,0xD6,0xD6,0xFE,0xEE,0x6C,0x00,0x00,0x00,0x00,
  621. /* 0x58 */ 0x00,0x00,0xC6,0xC6,0x6C,0x7C,0x38,0x38,0x7C,0x6C,0xC6,0xC6,0x00,0x00,0x00,0x00,
  622. /* 0x59 */ 0x00,0x00,0x66,0x66,0x66,0x66,0x3C,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  623. /* 0x5A */ 0x00,0x00,0xFE,0xC6,0x86,0x0C,0x18,0x30,0x60,0xC2,0xC6,0xFE,0x00,0x00,0x00,0x00,
  624. /* 0x5B */ 0x00,0x00,0x3C,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x3C,0x00,0x00,0x00,0x00,
  625. /* 0x5C */ 0x00,0x00,0x00,0x80,0xC0,0xE0,0x70,0x38,0x1C,0x0E,0x06,0x02,0x00,0x00,0x00,0x00,
  626. /* 0x5D */ 0x00,0x00,0x3C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x0C,0x3C,0x00,0x00,0x00,0x00,
  627. /* 0x5E */ 0x10,0x38,0x6C,0xC6,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  628. /* 0x5F */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,
  629. /* 0x60 */ 0x30,0x30,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  630. /* 0x61 */ 0x00,0x00,0x00,0x00,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  631. /* 0x62 */ 0x00,0x00,0xE0,0x60,0x60,0x78,0x6C,0x66,0x66,0x66,0x66,0x7C,0x00,0x00,0x00,0x00,
  632. /* 0x63 */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xC0,0xC0,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  633. /* 0x64 */ 0x00,0x00,0x1C,0x0C,0x0C,0x3C,0x6C,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  634. /* 0x65 */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xFE,0xC0,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  635. /* 0x66 */ 0x00,0x00,0x38,0x6C,0x64,0x60,0xF0,0x60,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00,
  636. /* 0x67 */ 0x00,0x00,0x00,0x00,0x00,0x3E,0x66,0x66,0x66,0x66,0x66,0x3E,0x06,0x66,0x3C,0x00,
  637. /* 0x68 */ 0x00,0x00,0xE0,0x60,0x60,0x6C,0x76,0x66,0x66,0x66,0x66,0xE6,0x00,0x00,0x00,0x00,
  638. /* 0x69 */ 0x00,0x00,0x18,0x18,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  639. /* 0x6A */ 0x00,0x00,0x06,0x06,0x00,0x0E,0x06,0x06,0x06,0x06,0x06,0x06,0x66,0x66,0x3C,0x00,
  640. /* 0x6B */ 0x00,0x00,0xE0,0x60,0x60,0x66,0x6C,0x78,0x78,0x6C,0x66,0xE6,0x00,0x00,0x00,0x00,
  641. /* 0x6C */ 0x00,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  642. /* 0x6D */ 0x00,0x00,0x00,0x00,0x00,0x6C,0xFE,0xD6,0xD6,0xD6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  643. /* 0x6E */ 0x00,0x00,0x00,0x00,0x00,0xDC,0x66,0x66,0x66,0x66,0x66,0x66,0x00,0x00,0x00,0x00,
  644. /* 0x6F */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  645. /* 0x70 */ 0x00,0x00,0x00,0x00,0x00,0xFC,0x66,0x66,0x66,0x66,0x66,0x7C,0x60,0x60,0xF0,0x00,
  646. /* 0x71 */ 0x00,0x00,0x00,0x00,0x00,0x7E,0xCC,0xCC,0xCC,0xCC,0xCC,0x7C,0x0C,0x0C,0x1E,0x00,
  647. /* 0x72 */ 0x00,0x00,0x00,0x00,0x00,0xDC,0x76,0x66,0x60,0x60,0x60,0xF0,0x00,0x00,0x00,0x00,
  648. /* 0x73 */ 0x00,0x00,0x00,0x00,0x00,0x7C,0xC6,0x60,0x38,0x0C,0xC6,0x7C,0x00,0x00,0x00,0x00,
  649. /* 0x74 */ 0x00,0x00,0x10,0x30,0x30,0xFC,0x30,0x30,0x30,0x30,0x36,0x1C,0x00,0x00,0x00,0x00,
  650. /* 0x75 */ 0x00,0x00,0x00,0x00,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  651. /* 0x76 */ 0x00,0x00,0x00,0x00,0x00,0x66,0x66,0x66,0x66,0x66,0x3C,0x18,0x00,0x00,0x00,0x00,
  652. /* 0x77 */ 0x00,0x00,0x00,0x00,0x00,0xC6,0xC6,0xD6,0xD6,0xD6,0xFE,0x6C,0x00,0x00,0x00,0x00,
  653. /* 0x78 */ 0x00,0x00,0x00,0x00,0x00,0xC6,0x6C,0x38,0x38,0x38,0x6C,0xC6,0x00,0x00,0x00,0x00,
  654. /* 0x79 */ 0x00,0x00,0x00,0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7E,0x06,0x0C,0xF8,0x00,
  655. /* 0x7A */ 0x00,0x00,0x00,0x00,0x00,0xFE,0xCC,0x18,0x30,0x60,0xC6,0xFE,0x00,0x00,0x00,0x00,
  656. /* 0x7B */ 0x00,0x00,0x0E,0x18,0x18,0x18,0x70,0x18,0x18,0x18,0x18,0x0E,0x00,0x00,0x00,0x00,
  657. /* 0x7C */ 0x00,0x00,0x18,0x18,0x18,0x18,0x00,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00,
  658. /* 0x7D */ 0x00,0x00,0x70,0x18,0x18,0x18,0x0E,0x18,0x18,0x18,0x18,0x70,0x00,0x00,0x00,0x00,
  659. /* 0x7E */ 0x00,0x00,0x76,0xDC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  660. /* 0x7F */ 0x00,0x00,0x00,0x00,0x10,0x38,0x6C,0xC6,0xC6,0xC6,0xFE,0x00,0x00,0x00,0x00,0x00,
  661. /* 0x80 */ 0x00,0x00,0x3C,0x66,0xC2,0xC0,0xC0,0xC0,0xC2,0x66,0x3C,0x0C,0x06,0x7C,0x00,0x00,
  662. /* 0x81 */ 0x00,0x00,0xCC,0x00,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  663. /* 0x82 */ 0x00,0x0C,0x18,0x30,0x00,0x7C,0xC6,0xC6,0xFE,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  664. /* 0x83 */ 0x00,0x10,0x38,0x6C,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  665. /* 0x84 */ 0x00,0x00,0xCC,0x00,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  666. /* 0x85 */ 0x00,0x60,0x30,0x18,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  667. /* 0x86 */ 0x00,0x38,0x6C,0x38,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  668. /* 0x87 */ 0x00,0x00,0x00,0x00,0x3C,0x66,0x60,0x60,0x66,0x3C,0x0C,0x06,0x3C,0x00,0x00,0x00,
  669. /* 0x88 */ 0x00,0x10,0x38,0x6C,0x00,0x7C,0xC6,0xC6,0xFE,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  670. /* 0x89 */ 0x00,0x00,0xC6,0x00,0x00,0x7C,0xC6,0xC6,0xFE,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  671. /* 0x8A */ 0x00,0x60,0x30,0x18,0x00,0x7C,0xC6,0xC6,0xFE,0xC0,0xC6,0x7C,0x00,0x00,0x00,0x00,
  672. /* 0x8B */ 0x00,0x00,0x66,0x00,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  673. /* 0x8C */ 0x00,0x18,0x3C,0x66,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  674. /* 0x8D */ 0x00,0x60,0x30,0x18,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  675. /* 0x8E */ 0x00,0xC6,0x00,0x10,0x38,0x6C,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  676. /* 0x8F */ 0x38,0x6C,0x38,0x00,0x38,0x6C,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  677. /* 0x90 */ 0x18,0x30,0x60,0x00,0xFE,0x66,0x60,0x7C,0x60,0x60,0x66,0xFE,0x00,0x00,0x00,0x00,
  678. /* 0x91 */ 0x00,0x00,0x00,0x00,0x00,0xCC,0x76,0x36,0x7E,0xD8,0xD8,0x6E,0x00,0x00,0x00,0x00,
  679. /* 0x92 */ 0x00,0x00,0x3E,0x6C,0xCC,0xCC,0xFE,0xCC,0xCC,0xCC,0xCC,0xCE,0x00,0x00,0x00,0x00,
  680. /* 0x93 */ 0x00,0x10,0x38,0x6C,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  681. /* 0x94 */ 0x00,0x00,0xC6,0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  682. /* 0x95 */ 0x00,0x60,0x30,0x18,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  683. /* 0x96 */ 0x00,0x30,0x78,0xCC,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  684. /* 0x97 */ 0x00,0x60,0x30,0x18,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  685. /* 0x98 */ 0x00,0x00,0xC6,0x00,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7E,0x06,0x0C,0x78,0x00,
  686. /* 0x99 */ 0x00,0xC6,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  687. /* 0x9A */ 0x00,0xC6,0x00,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  688. /* 0x9B */ 0x00,0x18,0x18,0x3C,0x66,0x60,0x60,0x60,0x66,0x3C,0x18,0x18,0x00,0x00,0x00,0x00,
  689. /* 0x9C */ 0x00,0x38,0x6C,0x64,0x60,0xF8,0x60,0x60,0x60,0x60,0xE6,0xFC,0x00,0x00,0x00,0x00,
  690. /* 0x9D */ 0x00,0x00,0x66,0x66,0x3C,0x18,0x7E,0x18,0x7E,0x18,0x18,0x18,0x00,0x00,0x00,0x00,
  691. /* 0x9E */ 0x00,0xF8,0xCC,0xCC,0xF8,0xC4,0xCC,0xDE,0xCC,0xCC,0xCC,0xC6,0x00,0x00,0x00,0x00,
  692. /* 0x9F */ 0x00,0x0E,0x1B,0x18,0x18,0x18,0x7E,0x18,0x18,0x18,0x18,0x18,0xD8,0x70,0x00,0x00,
  693. /* 0xA0 */ 0x00,0x18,0x30,0x60,0x00,0x78,0x0C,0x7C,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  694. /* 0xA1 */ 0x00,0x0C,0x18,0x30,0x00,0x38,0x18,0x18,0x18,0x18,0x18,0x3C,0x00,0x00,0x00,0x00,
  695. /* 0xA2 */ 0x00,0x18,0x30,0x60,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  696. /* 0xA3 */ 0x00,0x18,0x30,0x60,0x00,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0x76,0x00,0x00,0x00,0x00,
  697. /* 0xA4 */ 0x00,0x00,0x76,0xDC,0x00,0xDC,0x66,0x66,0x66,0x66,0x66,0x66,0x00,0x00,0x00,0x00,
  698. /* 0xA5 */ 0x76,0xDC,0x00,0xC6,0xE6,0xF6,0xFE,0xDE,0xCE,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  699. /* 0xA6 */ 0x00,0x3C,0x6C,0x6C,0x3E,0x00,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  700. /* 0xA7 */ 0x00,0x38,0x6C,0x6C,0x38,0x00,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  701. /* 0xA8 */ 0x00,0x00,0x30,0x30,0x00,0x30,0x30,0x60,0xC0,0xC6,0xC6,0x7C,0x00,0x00,0x00,0x00,
  702. /* 0xA9 */ 0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00,0x00,0x00,
  703. /* 0xAA */ 0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x06,0x06,0x06,0x06,0x00,0x00,0x00,0x00,0x00,
  704. /* 0xAB */ 0x00,0xC0,0xC0,0xC2,0xC6,0xCC,0x18,0x30,0x60,0xDC,0x86,0x0C,0x18,0x3E,0x00,0x00,
  705. /* 0xAC */ 0x00,0xC0,0xC0,0xC2,0xC6,0xCC,0x18,0x30,0x66,0xCE,0x9E,0x3E,0x06,0x06,0x00,0x00,
  706. /* 0xAD */ 0x00,0x00,0x18,0x18,0x00,0x18,0x18,0x18,0x3C,0x3C,0x3C,0x18,0x00,0x00,0x00,0x00,
  707. /* 0xAE */ 0x00,0x00,0x00,0x00,0x00,0x36,0x6C,0xD8,0x6C,0x36,0x00,0x00,0x00,0x00,0x00,0x00,
  708. /* 0xAF */ 0x00,0x00,0x00,0x00,0x00,0xD8,0x6C,0x36,0x6C,0xD8,0x00,0x00,0x00,0x00,0x00,0x00,
  709. /* 0xB0 */ 0x11,0x44,0x11,0x44,0x11,0x44,0x11,0x44,0x11,0x44,0x11,0x44,0x11,0x44,0x11,0x44,
  710. /* 0xB1 */ 0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,0x55,0xAA,
  711. /* 0xB2 */ 0xDD,0x77,0xDD,0x77,0xDD,0x77,0xDD,0x77,0xDD,0x77,0xDD,0x77,0xDD,0x77,0xDD,0x77,
  712. /* 0xB3 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  713. /* 0xB4 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xF8,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  714. /* 0xB5 */ 0x18,0x18,0x18,0x18,0x18,0xF8,0x18,0xF8,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  715. /* 0xB6 */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0xF6,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  716. /* 0xB7 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFE,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  717. /* 0xB8 */ 0x00,0x00,0x00,0x00,0x00,0xF8,0x18,0xF8,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  718. /* 0xB9 */ 0x36,0x36,0x36,0x36,0x36,0xF6,0x06,0xF6,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  719. /* 0xBA */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  720. /* 0xBB */ 0x00,0x00,0x00,0x00,0x00,0xFE,0x06,0xF6,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  721. /* 0xBC */ 0x36,0x36,0x36,0x36,0x36,0xF6,0x06,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  722. /* 0xBD */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0xFE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  723. /* 0xBE */ 0x18,0x18,0x18,0x18,0x18,0xF8,0x18,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  724. /* 0xBF */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  725. /* 0xC0 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  726. /* 0xC1 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  727. /* 0xC2 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  728. /* 0xC3 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1F,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  729. /* 0xC4 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  730. /* 0xC5 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  731. /* 0xC6 */ 0x18,0x18,0x18,0x18,0x18,0x1F,0x18,0x1F,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  732. /* 0xC7 */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x37,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  733. /* 0xC8 */ 0x36,0x36,0x36,0x36,0x36,0x37,0x30,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  734. /* 0xC9 */ 0x00,0x00,0x00,0x00,0x00,0x3F,0x30,0x37,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  735. /* 0xCA */ 0x36,0x36,0x36,0x36,0x36,0xF7,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  736. /* 0xCB */ 0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0xF7,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  737. /* 0xCC */ 0x36,0x36,0x36,0x36,0x36,0x37,0x30,0x37,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  738. /* 0xCD */ 0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  739. /* 0xCE */ 0x36,0x36,0x36,0x36,0x36,0xF7,0x00,0xF7,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  740. /* 0xCF */ 0x18,0x18,0x18,0x18,0x18,0xFF,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  741. /* 0xD0 */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  742. /* 0xD1 */ 0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  743. /* 0xD2 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  744. /* 0xD3 */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x3F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  745. /* 0xD4 */ 0x18,0x18,0x18,0x18,0x18,0x1F,0x18,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  746. /* 0xD5 */ 0x00,0x00,0x00,0x00,0x00,0x1F,0x18,0x1F,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  747. /* 0xD6 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3F,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  748. /* 0xD7 */ 0x36,0x36,0x36,0x36,0x36,0x36,0x36,0xFF,0x36,0x36,0x36,0x36,0x36,0x36,0x36,0x36,
  749. /* 0xD8 */ 0x18,0x18,0x18,0x18,0x18,0xFF,0x18,0xFF,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  750. /* 0xD9 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  751. /* 0xDA */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  752. /* 0xDB */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  753. /* 0xDC */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
  754. /* 0xDD */ 0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,0xF0,
  755. /* 0xDE */ 0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,
  756. /* 0xDF */ 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  757. /* 0xE0 */ 0x00,0x00,0x00,0x00,0x00,0x76,0xDC,0xD8,0xD8,0xD8,0xDC,0x76,0x00,0x00,0x00,0x00,
  758. /* 0xE1 */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xFC,0xC6,0xC6,0xC6,0xC6,0xDC,0xC0,0xC0,0x00,0x00,
  759. /* 0xE2 */ 0x00,0x00,0xFE,0xC6,0xC6,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x00,0x00,0x00,0x00,
  760. /* 0xE3 */ 0x00,0x00,0x00,0x00,0x00,0xFE,0x6C,0x6C,0x6C,0x6C,0x6C,0x6C,0x00,0x00,0x00,0x00,
  761. /* 0xE4 */ 0x00,0x00,0xFE,0xC6,0x60,0x30,0x18,0x18,0x30,0x60,0xC6,0xFE,0x00,0x00,0x00,0x00,
  762. /* 0xE5 */ 0x00,0x00,0x00,0x00,0x00,0x7E,0xD8,0xD8,0xD8,0xD8,0xD8,0x70,0x00,0x00,0x00,0x00,
  763. /* 0xE6 */ 0x00,0x00,0x00,0x00,0x00,0x66,0x66,0x66,0x66,0x66,0x7C,0x60,0xC0,0x00,0x00,0x00,
  764. /* 0xE7 */ 0x00,0x00,0x00,0x00,0x00,0x76,0xDC,0x18,0x18,0x18,0x18,0x18,0x00,0x00,0x00,0x00,
  765. /* 0xE8 */ 0x00,0x00,0x7E,0x18,0x3C,0x66,0x66,0x66,0x66,0x3C,0x18,0x7E,0x00,0x00,0x00,0x00,
  766. /* 0xE9 */ 0x00,0x00,0x38,0x6C,0xC6,0xC6,0xFE,0xC6,0xC6,0xC6,0x6C,0x38,0x00,0x00,0x00,0x00,
  767. /* 0xEA */ 0x00,0x00,0x38,0x6C,0xC6,0xC6,0xC6,0x6C,0x6C,0x6C,0x6C,0xEE,0x00,0x00,0x00,0x00,
  768. /* 0xEB */ 0x00,0x00,0x1E,0x30,0x18,0x0C,0x3E,0x66,0x66,0x66,0x66,0x3C,0x00,0x00,0x00,0x00,
  769. /* 0xEC */ 0x00,0x00,0x00,0x00,0x00,0x7E,0xDB,0xDB,0xDB,0x7E,0x00,0x00,0x00,0x00,0x00,0x00,
  770. /* 0xED */ 0x00,0x00,0x00,0x03,0x06,0x7E,0xDB,0xDB,0xF3,0x7E,0x60,0xC0,0x00,0x00,0x00,0x00,
  771. /* 0xEE */ 0x00,0x00,0x1C,0x30,0x60,0x60,0x7C,0x60,0x60,0x60,0x30,0x1C,0x00,0x00,0x00,0x00,
  772. /* 0xEF */ 0x00,0x00,0x7C,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0xC6,0x00,0x00,0x00,0x00,
  773. /* 0xF0 */ 0x00,0x00,0x00,0x00,0xFE,0x00,0x00,0xFE,0x00,0x00,0xFE,0x00,0x00,0x00,0x00,0x00,
  774. /* 0xF1 */ 0x00,0x00,0x00,0x00,0x18,0x18,0x7E,0x18,0x18,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,
  775. /* 0xF2 */ 0x00,0x00,0x00,0x30,0x18,0x0C,0x06,0x0C,0x18,0x30,0x00,0x7E,0x00,0x00,0x00,0x00,
  776. /* 0xF3 */ 0x00,0x00,0x00,0x0C,0x18,0x30,0x60,0x30,0x18,0x0C,0x00,0x7E,0x00,0x00,0x00,0x00,
  777. /* 0xF4 */ 0x00,0x0E,0x1B,0x1B,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
  778. /* 0xF5 */ 0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0xD8,0xD8,0xD8,0x70,0x00,0x00,0x00,0x00,
  779. /* 0xF6 */ 0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x7E,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x00,
  780. /* 0xF7 */ 0x00,0x00,0x00,0x00,0x00,0x76,0xDC,0x00,0x76,0xDC,0x00,0x00,0x00,0x00,0x00,0x00,
  781. /* 0xF8 */ 0x00,0x38,0x6C,0x6C,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  782. /* 0xF9 */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  783. /* 0xFA */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  784. /* 0xFB */ 0x00,0x0F,0x0C,0x0C,0x0C,0x0C,0x0C,0xEC,0x6C,0x6C,0x3C,0x1C,0x00,0x00,0x00,0x00,
  785. /* 0xFC */ 0x00,0xD8,0x6C,0x6C,0x6C,0x6C,0x6C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  786. /* 0xFD */ 0x00,0x70,0xD8,0x30,0x60,0xC8,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  787. /* 0xFE */ 0x00,0x00,0x00,0x00,0x7C,0x7C,0x7C,0x7C,0x7C,0x7C,0x7C,0x00,0x00,0x00,0x00,0x00,
  788. };
  789.  
  790.  
  791. loadFont(unsigned char *ISA_mem)
  792. {
  793.   int i, j;
  794.   unsigned char *font_page = (unsigned char *) &ISA_mem[0xA0000];
  795.  
  796.   printf("Reload fonts...\n");    
  797.   outb(0x3C2, 0x67);
  798.   /* 
  799.    * Load font 
  800.    */
  801.   i = inb(0x3DA);  /* Reset Attr toggle */
  802.   
  803.   outb(0x3C0,0x30); 
  804.   outb(0x3C0, 0x01);      /* graphics mode */
  805.  
  806.   outw(0x3C4, 0x0001);    /* reset sequencer */
  807.   outw(0x3C4, 0x0204);    /* write to plane 2 */
  808.   outw(0x3C4, 0x0406);    /* enable plane graphics */
  809.   outw(0x3C4, 0x0003);    /* reset sequencer */
  810.   outw(0x3CE, 0x0402);    /* read plane 2 */
  811.   outw(0x3CE, 0x0500);    /* write mode 0, read mode 0 */
  812.   outw(0x3CE, 0x0605);    /* set graphics mode */
  813.  
  814.   for (i = 0;  i < sizeof(font);  i += 16) {
  815.     for (j = 0;  j < 16;  j++) {
  816.       __asm__ volatile("eieio");
  817.       font_page[(2*i)+j] = font[i+j];
  818.     }
  819.   }
  820. }
  821.