Post Reply 
HP-42 Program Critique - Kinematic Equations (first program)
06-14-2020, 02:26 PM
Post: #2
RE: Program Critique
You might have been running into issues with the KEY XEQ instructions since your menu doesn't loop back to itself. Typically, after MENU, STOP, you'll want a GTO that jumps back to the same menu. This can either be a LBL directly before the MENU instruction, or all the way before the CLMENU (sometimes it depends on the program and whether it needs to refresh the contents of the menu every time it's displayed).

By doing that, and also leaving out the KEY 9 GTO... (i.e. not moving the program pointer when closing the menu), the user can redisplay the last menu by simply pressing R/S. Of course, there are plenty of times where you DO want to handle the EXIT key and RTN or GTO, particularly if you're building a tree of submenus and you want EXIT to go back up a level.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Program Critique - Dave Britten - 06-14-2020 02:26 PM
RE: Program Critique - DM48 - 06-14-2020, 06:23 PM
RE: Program Critique - DM48 - 03-18-2021, 12:59 AM
RE: Program Critique - rprosperi - 03-18-2021, 03:17 AM
RE: HP-42 Program Critique - Kine - DM48 - 03-18-2021, 11:17 AM



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