Not needed anymore: we use a lookup table (ansi_char)
in cprint_vga2ansi now to reverse Background and Foreground bits..
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32sys_t inreg, outreg; // Global register sets for use
-static unsigned int bit_reverse(unsigned int code, int len)
-{
- register unsigned res = 0;
- do {
- res |= code & 1;
- code >>= 1, res <<= 1;
- } while (--len > 0);
- return res >> 1;
-}
-
void cprint_vga2ansi(char chr, char attr)
{
static const char ansi_char[8] = "04261537";