/***************************************************************** * exp3c5x_3.c - C program for adding a series of numbers * for CCS experiments in Section 3.7.3.3 ******************************************************************/ #include #include #include #include /***************************************************************** * Define variable arrays variables *****************************************************************/ int num[8] = {19660, 19660, 6554, -9830, -32768, -29491, 9830, 6554}; int i,y; void main() { /* Understand the difference between _saad and _lsaad */ /* _lsadd can be treated as OVM turn off */ y = num[0]; for (i=0; i<7; i++) { y = _sadd(num[i+1],y); } }