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

Subversion Repositories orsoc_graphics_accelerator

[/] [orsoc_graphics_accelerator/] [trunk/] [sw/] [drivers/] [gfx/] [bare/] [orgfx_debug.h] - Rev 5

Compare with Previous | Blame | View Log

#include "orgfx.h"
 
void orgfx_print_reg(unsigned int xOffset, unsigned int yOffset, unsigned int reg32)
{
	unsigned int bit, x, y;
	for(bit = 0; bit < 32; ++bit)
	{
		int color = 0xffffffff;
		if(reg32 & (1 << (31-bit)))
			color = 0xf800f800;
 
		for(y = 0; y < 10; ++y)
			for(x = 0; x < 10; x+=2)
                orgfx_set_pixel(x + xOffset, y + yOffset, color);
 
		xOffset += 12;
	}
}
 
 

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.