HP Forums
33c gsb debugging - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: 33c gsb debugging (/thread-8261.html)



33c gsb debugging - nsg - 04-28-2017 01:21 AM

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?


RE: 33c gsb debugging - PANAMATIK - 04-28-2017 07:54 AM

(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


RE: 33c gsb debugging - nsg - 04-28-2017 09:59 PM

(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?


RE: 33c gsb debugging - Dieter - 05-01-2017 08:29 AM

(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