Post Reply 
Programming WP34s
10-09-2017, 11:34 AM
Post: #3
RE: Programming WP34s
(10-09-2017 06:23 AM)Dieter Wrote:  Compared to HP calculators the 34s behaves differently in this regard. After a program has finished (e.g. with RTN or END) the program pointer is not set to the top of the memory (like on the 34C) nor does it point to the next instruction after the RTN (like on the 67 and 41C). Instead it points to the instruction where you last left it. For instance, if you go to line 005 (GTO . 005) and then XEQ "SPD", the program pointer afterwards will still be at line 005.

....

Dieter

In case this seems strange - the logic is that XEQ "SPD" is a subroutine call, and so after completing the routine the pointer goes back to where it was beforehand. This is useful - if you have written your own routine you can call it to calculate something while a program is waiting for input without upsetting that program.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming WP34s - Matthias D. - 10-09-2017, 04:58 AM
RE: Programming WP34s - Dieter - 10-09-2017, 06:23 AM
RE: Programming WP34s - Nigel (UK) - 10-09-2017 11:34 AM
RE: Programming WP34s - Matthias D. - 10-12-2017, 04:21 AM
RE: Programming WP34s - Dieter - 10-12-2017, 01:53 PM
RE: Programming WP34s - Matthias D. - 10-12-2017, 09:04 PM
RE: Programming WP34s - Matthias D. - 10-13-2017, 07:00 AM
RE: Programming WP34s - Dieter - 10-13-2017, 06:42 PM



User(s) browsing this thread: 1 Guest(s)