I get the following error from simulator: i:\banzai\arm\core\emul68k\srcslowemu\run68k.c, Line:4427, Unhandled instr
What can it mean. What instr? (instruction?)
It comes, when I return from my (notified) Dialog back to Datebook. Not at once, but only after switching there to a different form of Datebook. Even when I return without doing anything else with the Dialog but clicking the default button.
When the simulator is emulating 68K instructions, it looks at the top 4 bits and and branches to a function based on the value it finds there. It does this using a C "switch" statement. If the top 4 bits don't contain a valid value, a "default" statement issues the error you see.
The only values that are not handled are 10 and 15. These values correspond to 68K machine language instructions A000-AFFF and F000-FFFF. Instructions in those ranges are reserved by Motorola for expansion purposes. Indeed, the A000-AFFF range is used on the Mac to invoke operating system functions, and the F000-FFFF range is used to access coprocessor units, such as a floating point chip.
Neither range is valid in the context of the Palm OS. However, it's anyone's guess as to why you are encountering the error. My first guess would be that you've set your floating point options incorrectly in your CodeWarrior project (which would typically result in calls to the Mac OS to handle them via instructions in the A000-AFFF range). However, (a) you don't say if you're using CodeWarrior, and (b) that kind of error would be caught quickly by the Palm OS Emulator and clearly reported.
Otherwise, I don't have any suggestions on how to track this down. I've never used the Simulator, so I don't know what kind of debugging facilities it offers for debugging at the assembly level (which is what I'd personally try to do). But perhaps this background information will help you, and perhaps someone else can fill in the missing pieces.
-- Keith Rollin -- Palm OS Emulator engineer
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
