URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 107 |
Rev 1765 |
/* This program is used to test the "jump" command. There's nothing
|
/* This program is used to test the "jump" command. There's nothing
|
particularly deep about the functionality nor names in here.
|
particularly deep about the functionality nor names in here.
|
*/
|
*/
|
|
|
#ifdef PROTOTYPES
|
#ifdef PROTOTYPES
|
static int square (int x)
|
static int square (int x)
|
#else
|
#else
|
static int square (x)
|
static int square (x)
|
int x;
|
int x;
|
#endif
|
#endif
|
{
|
{
|
return x*x;
|
return x*x;
|
}
|
}
|
|
|
|
|
int main ()
|
int main ()
|
{
|
{
|
int i = 99;
|
int i = 99;
|
|
|
i++;
|
i++;
|
i = square (i);
|
i = square (i);
|
i--;
|
i--;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.