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] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 maiden
#include "orgfx.h"
2
 
3
void orgfx_print_reg(unsigned int xOffset, unsigned int yOffset, unsigned int reg32)
4
{
5
        unsigned int bit, x, y;
6
        for(bit = 0; bit < 32; ++bit)
7
        {
8
                int color = 0xffffffff;
9
                if(reg32 & (1 << (31-bit)))
10
                        color = 0xf800f800;
11
 
12
                for(y = 0; y < 10; ++y)
13
                        for(x = 0; x < 10; x+=2)
14
                orgfx_set_pixel(x + xOffset, y + yOffset, color);
15
 
16
                xOffset += 12;
17
        }
18
}
19
 

powered by: WebSVN 2.1.0

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