HP Forums
Cleaning exiting library programs - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Cleaning exiting library programs (/thread-250230.html)

Cleaning exiting library programs - patryk - 09-13-2013

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.

Re: Cleaning exiting library programs - Marcus von Cube, Germany - 09-14-2013

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.

Re: Cleaning exiting library programs - patryk - 09-14-2013

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.