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

Subversion Repositories steelcore

[/] [util/] [hello.c] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 rafaelcalc
int main()
2
{
3
    char* UART_ADDRESS = (char*)0x00010000;
4
    char hello[20] = "Hello World, Steel!\0";
5
    int i = 0;
6
    for(i = 0; i < 20; i++)
7
    {
8
        while((*UART_ADDRESS) != 1);
9
        (*UART_ADDRESS) = hello[i];
10
    }
11
    for(;;);
12
}

powered by: WebSVN 2.1.0

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