Motorola once sc140 Benutzerhandbuch
![Motorola](https://files.manualsbrain.com/attachments/83de88ba2280e7232128e8931d7cbd2a38dcc654/common/fit/150/50/0293f422c4d32e7e0f777d5e11bc33c83ea5627f71ddf155374c02a23d9a/brand_logo.png)
Compiler Support on StarCore
Introduction to the SC140 Tools
27
10
Solutions to Exercises
Exercise 1:
/*****************************************************************************
* MOTOROLA INC.
* SEMICONDUCTOR PRODUCTS SECTOR
* COPYRIGHT 1999 MOTOROLA INC.
*******************************************************************************
* INTRODUCTION TO THE SC140 TOOLS
* Developed by MOTOROLA SPS/NCSG/WISD
*******************************************************************************/
#include <stdio.h>
main()
{
{
printf(“Welcome to StarCore SC140 Tools\n”);
}
Exercise 2:
/*****************************************************************************
* MOTOROLA INC.
* SEMICONDUCTOR PRODUCTS SECTOR
* COPYRIGHT 1999 MOTOROLA INC.
*******************************************************************************
* INTRODUCTION TO THE SC140 TOOLS
* Developed by MOTOROLA SPS/NCSG/WISD
*******************************************************************************/
#include <stdio.h>
#include <prototype.h>
short x[12] = {0,1,2,3,4,5,6,7,8,9,10,11};
main()
{
short i;
long res=0;
long fres=0;
for(i=0;i<12;i++)
{
res += x[i] * x[i];
}
for(i=0;i<12;i++)
{
fres = L_mac(fres,x[i],x[i]);