Forums

Remainder operator

Started by wmjidk9 December 9, 2002
I believe this should be a simple question, just have not been able
to find it...

when I use the remainder operator (%) in C code, and then step thru
with Degubber (Metrowerks), the debugger wants me to show it where a
file is (presumable to show me the source code for how this operation
was implimented).

any ideas on where an appropriate file would be for this, or how to
make this 'go away' when I forget and 'step into' this line of code?

(example line of code causing this:)
step = (step +1) % 6; //update the step

thanks
bill



Bill,

This shouldn't happen as far as I know....even if it was trying to
show you the source code for the operation (which comes from the MSL
library), it should simply step into it just fine without the window
popping up. I ran a quick test where the variable "step" was an
integer just to check it out and it worked just fine on R5.0.2.

Short term just to get the error to go away, you might try deleting
your MSL library that is included in your project and go to the MSL
project and rebuild it and include the new library in your project
(maybe your MSL library got corrupted somehow). You can find the
project for the MSL library at:

{install directory}\M56800 Support\msl\Msl_c\DSP_56800\Project\

Hope this info helps!

Regards,
John

--- In , "wmjidk9 <wmjidk9@n...>"
<wmjidk9@n...> wrote:
> I believe this should be a simple question, just have not been able
> to find it...
>
> when I use the remainder operator (%) in C code, and then step thru
> with Degubber (Metrowerks), the debugger wants me to show it where
a
> file is (presumable to show me the source code for how this
operation
> was implimented).
>
> any ideas on where an appropriate file would be for this, or how to
> make this 'go away' when I forget and 'step into' this line of code?
>
> (example line of code causing this:)
> step = (step +1) % 6; //update the step
>
> thanks
> bill