At 10:52 AM 6/10/2004, you wrote:
        I am having a strange problem in one of my latest projects, and I am
running out of ideas on what could be going on.  I have limited the
problem down to the following lines of code:

UInt32 calcIncVal()
{
        UInt32 incval=0;
        UInt32 Magic=10616832; //Value
        UInt32 MixFreq=428;
        incval=Magic/MixFreq; //incval should now contain 24805

        return(incval);
}

        The problem occurs on the second to last line.  incval should contain
24805 after this line executes, Instead, I get the error
"i:\banzai\arm\core\emul68k\srcslowemu\run68k.c, Line:3109, Invalid read
from FFFFFF64" in the simulator.

What tool are you using? 32-bit division requires runtime library support on the 68K, so the choice of tool matters in diagnosing this problem.



-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to