HP Forums

Full Version: 33c gsb debugging
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tired to debug program on 33c (np25 actually) by stepping through.
When I sst over GSB instruction it goes into calculation mode and executes entire subroutine until rtn. Is there a trick way to stay in operation mode so I can step-by-step the contents of subroutine as well?
(04-28-2017 01:21 AM)nsg Wrote: [ -> ]I tired to debug program on 33c (np25 actually) by stepping through.
When I sst over GSB instruction it goes into calculation mode and executes entire subroutine until rtn. Is there a trick way to stay in operation mode so I can step-by-step the contents of subroutine as well?

Press SST twice very fast if you encounter a GSB instruction.This will stop inside the subroutine. Two or three instructions are executed though. You could add a PAUSE instruction as first subroutine step and replace it by NOP after debugging.

Bernhard
(04-28-2017 07:54 AM)PANAMATIK Wrote: [ -> ]Press SST twice very fast if you encounter a GSB instruction.

Thanks for all good suggestions. It looks like i did not miss anything obvious and there is no way to actually step into the sub.

What other calculators have this? 65? 67? 55? 34c?
(04-28-2017 09:59 PM)nsg Wrote: [ -> ]Thanks for all good suggestions. It looks like i did not miss anything obvious and there is no way to actually step into the sub.

Pressing SST twice (as fast as a double-click) works quite well.

(04-28-2017 09:59 PM)nsg Wrote: [ -> ]What other calculators have this? 65? 67? 55? 34c?

The 67, 19C and 29C behave the same. On the other hand the 34C and 41C step through every single instruction. Both methods have their benefits, and I wish there was a way to use either one. Sometimes tracing every step in a subroutines is helpful, while on other occasions running through the complete routine is more convenient. The debuggers of all PC-based programming environments I know of allow both methods.

I wonder why the 33C and 34C obviously behave differently in this regard although they both belong to the same Spice series.

Dieter
Reference URL's