Cleaning exiting library programs


What is the proper way of exiting a program such as MED? When I am finished typing in a matrix with MED, I press the exit button, but that displays "Program Stopped", and leaves the program in the programming stack (P/R). And even after I clear that with RTN, there is an equal sign stuck on my screen. Thanks for the help.


RTN is a good idea because it returns you to the user program area in RAM. The equal sign can be cleared with CF A.

You should be able to cleanly stop MED with <-. Exit just suspends program execution (like R/S) and the program is still the active one. You can resume execution with R/S. <- is handled internally to do a clean exit.

Here is the explaining comment from matrixedit.wp34s:

* Interactive editor for matrices.
* Start the editor with a matrix descriptor in X.
* Use the arrow keys to navigate:
* up/down: previous/next column
* f-up/f-down: previous/next row
* Type a digit to enter a number. This will suspend
* the progrom. R/S will enter X at the current row/column.
* XEQ RCL restores the present value to X if you decide
* not to change the cell. Press R/S to continue.
* Some hot keys:
* A will start over at (1,1).
* When used outside the editor you will need to specifiy
* a new descriptor first.
* B (labeled 1/x) will call M[^-1] on the matrix.
* C continues at the last position.
* D computes and displays the determinant. R/S or C continue.
* We need a few registers for internal use and therefore
* set the stacksize to 4 to free registers A to D.
* Press <- to restore the mode and exit the editor.
* Double precision mode will always be reset!
* Register usage:
* A - Matrix descriptor
* B - Current register
* D - Old setup mode
* I, J - Row and column
* K last key pressed
* Flags:
* A - Controls big "=" sign
* 00 - Shift state
* Fixed labels:
* A, 11 - Start over with new matrix ('A'gain)
* B, 12 - Compute the inverse ('1/x')
* C - Continue with current matrix ('C'ontinue)
* 14, D - Compute the determinant ('D'eterminant)
* 22 - [RCL] recalls current matrix element
* 24 - [f] toggles navigation from horizontal to vertical
* 31 - [ENTER^] (same as recall)
* 35 - [<-] Backspace to exit the editor
* 51 - [^] Navigation up/left
* 61 - [v] Navigation down/right

Other programs will most certainly work differently.


Oh wow, everything was in that file? I was looking at it multiple times, but just missed <- and A controlling the =. Thank for your help.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Library#4 Modules mass-update and New Overlays Ángel Martin 0 561 11-09-2013, 05:55 AM
Last Post: 'Angel Martin
  [HP Prime] Constants Library Values Timothy Roche 24 2,878 11-02-2013, 04:17 PM
Last Post: Les Koller
  [HP-Prime CAS] Vector Calculus Library CompSystems 7 1,233 10-31-2013, 12:48 PM
Last Post: Han
  Equation Library/App for the Prime Harold A Climer 3 720 10-30-2013, 10:14 AM
Last Post: CompSystems
  Equation Library on the PRIME Harold A Climer 0 420 10-26-2013, 10:01 AM
Last Post: Harold A Climer
  CASplus Library for HP-Prime CompSystems 1 524 10-05-2013, 12:44 AM
Last Post: CompSystems
  The Rich HP Calculator Library Eddie W. Shore 0 360 09-27-2013, 10:19 PM
Last Post: Eddie W. Shore
  So, latest 41CL / Library 4 config is... Gene Wright 4 855 09-22-2013, 02:59 AM
Last Post: Ángel Martin
  Cleaning old slide rules aurelio 3 804 09-18-2013, 03:25 PM
Last Post: aurelio
  Problem loading library into emulator Tom Grydeland 2 584 09-08-2013, 08:42 AM
Last Post: Marcus von Cube, Germany

Forum Jump: