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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [peripheral/] [vga.c] - Diff between revs 970 and 1308

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 970 Rev 1308
Line 154... Line 154...
 
 
 
 
/* Dumps a bmp file, based on current image */
/* Dumps a bmp file, based on current image */
static int vga_dump_image (char *filename, int v)
static int vga_dump_image (char *filename, int v)
{
{
  unsigned long addr = config.vgas[v].baseaddr;
 
  int sx = vga[v].hlen;
  int sx = vga[v].hlen;
  int sy = vga[v].vlen;
  int sy = vga[v].vlen;
  int i, x, y;
  int i, x, y;
  int pc = vga[v].ctrl & VGA_CTRL_PC;
  int pc = vga[v].ctrl & VGA_CTRL_PC;
  int rbpp = vga[v].ctrl & VGA_CTRL_CD;
  int rbpp = vga[v].ctrl & VGA_CTRL_CD;

powered by: WebSVN 2.1.0

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