URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 106 |
Rev 107 |
/* This file is actually in C, it is not supposed to simulate something
|
/* This file is actually in C, it is not supposed to simulate something
|
translated from another language or anything like that. */
|
translated from another language or anything like that. */
|
#ifdef PROTOTYPES
|
#ifdef PROTOTYPES
|
extern int fsub_();
|
extern int fsub_();
|
|
|
int csub (int x)
|
int csub (int x)
|
#else
|
#else
|
int
|
int
|
csub (x)
|
csub (x)
|
int x;
|
int x;
|
#endif
|
#endif
|
{
|
{
|
return x + 1;
|
return x + 1;
|
}
|
}
|
|
|
int
|
int
|
langs0__2do ()
|
langs0__2do ()
|
{
|
{
|
return fsub_ () + 2;
|
return fsub_ () + 2;
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
#ifdef usestubs
|
#ifdef usestubs
|
set_debug_traps();
|
set_debug_traps();
|
breakpoint();
|
breakpoint();
|
#endif
|
#endif
|
if (langs0__2do () == 5003)
|
if (langs0__2do () == 5003)
|
/* Success. */
|
/* Success. */
|
return 0;
|
return 0;
|
else
|
else
|
return 1;
|
return 1;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.