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

Subversion Repositories openfire2

[/] [openfire2/] [trunk/] [sw/] [vga/] [vga_5x7_putline.c] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 toni32
#include "vga.h"
2
 
3
void vga_putline5x7(char *s, unsigned short x, unsigned short y)
4
{
5
  unsigned c;
6
 
7
  while( (c = *(s++)) != 0 )
8
  {
9
    if(c == '\r') x = 0;
10
    else if(c == '\n') { x = 0; y++; }
11
    else
12
    {
13
      if(c < 0x20 || c > 0x7f) c = '?';
14
      vga_putchar5x7(c, x, y);
15
      x++;
16
      if(x == 128) { x = 0; y++; }
17
      if(y == 68) y = 0;
18
    }
19
  }
20
}

powered by: WebSVN 2.1.0

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