Re: error message Kah Mun,

sorry, IC does not support the 'switch' construct.

re-write using if-thens.

fred

In your message you said:
> Whenever I run this simple program below, i get the following error message:
> "Fatal Internal Error: Illegal size to spew_peek_op(read local)". What does i
t
> mean?? Please help..
> 
> 
> void servo(char balloon)
> {     const float left_b=400.0;
>       const float right_b=4840.0;
>       const float center=2530.0;
>       float t;
> 
>       switch (balloon)
>            {
>             case 'L':   t=left_b+right_b;
>                         printf("Total=%f\\n", t );
>                         break;
> 
>             case 'R':  t=left_b+center;
>                        printf("Total=%f\\n", t );
>                        break;
> 
>             case 'B':  t=right_b+right_b;
>             	       printf("Total=%f\\n", t );
>                        break;
>          }
> }  /* end of program */
> 

