URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 106 |
Rev 1765 |
/* This is a sample program for the HP/DDE debugger. */
|
/* This is a sample program for the HP/DDE debugger. */
|
#include <stdio.h>
|
#include <stdio.h>
|
|
|
#ifdef PROTOTYPES
|
#ifdef PROTOTYPES
|
int sum(int *list, int low, int high)
|
int sum(int *list, int low, int high)
|
#else
|
#else
|
int sum(list, low, high)
|
int sum(list, low, high)
|
int *list, low, high;
|
int *list, low, high;
|
#endif
|
#endif
|
{
|
{
|
int i = 0, s = 0;
|
int i = 0, s = 0;
|
for (i = low; i <= high; i++)
|
for (i = low; i <= high; i++)
|
s += list[i];
|
s += list[i];
|
return(s);
|
return(s);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.