At 8:53 PM +0200 3/31/01, Tilo Christ wrote:
>  > Or perhaps your loop is looping using a code sequence that Poser is
>>  interpreting as a "branch to subroutine".  But without seeing your
>>  application myself, I couldn't say that was happening for sure.
>
>It looks like this is the case. What kinds of code sequences does 
>POSE react to? I do have the source and the corresponding assembly
>code of my app. There are a few JSR to invoke other methods, a few 
>BRAs (and BNE, etc.), and some TRAPs in my event loop. The loop
>itself is a do-while-loop, which the compiler turns into a CMP and a 
>BNE statement at the end of the loop.

Well, since you have or can get the Poser source code, you can answer 
for yourself what sequences Poser looks for.  For entering a function 
(handled in ProfileFnEnter), it generally looks for JSR, BSR, and 
TRAP #15 instructions.  For exiting a function (handled in 
ProfileFnExit), it generally looks for RTS and RTE instructions 
(being smart enough to recognize when RTS is actually being used to 
*call* a function).

Are you handling any exceptions with ErrTry, ErrCatch, etc?  Poser is 
supposed to be smart enough to handle those, too, but perhaps that's 
an avenue that should be investigated.
-- 

-- Keith Rollin
-- Palm OS Emulator engineer

P.S. Check out the new e-mail address.  [EMAIL PROTECTED] will work 
for a while, but anyone mailing me needs to update to the new one 
eventually.

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

Reply via email to