![]() |
HP 15c question about [ENTER] - 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: HP 15c question about [ENTER] (/thread-215952.html) |
HP 15c question about [ENTER] - nina scholz - 03-29-2012 LBL {blockvalue} ; blockValue(x: value): x: counter ready
i have the above mentioned part. it requires 2x enter to duplicate the x stack. simple question, why is not only one enter enough?
Re: HP 15c question about [ENTER] - Harald - 03-29-2012 Because the last one gets overwritten by your next entry "2"
Re: HP 15c question about [ENTER] - Dave Britten - 03-29-2012 In a nutshell, ENTER disables stack lift, meaning your next entry will overwrite what's in X. I think there are a few other things that disable stack lift, but I'm drawing a blank at the moment.
Re: HP 15c question about [ENTER] - M. Joury - 03-29-2012 Unlike with an RPL machine ENTER on an RPN machine disables stack lift. Therefore any numeric entry immediately after an ENTER overwrites the 'X' (visible) register. On an RPL machine ENTER is more like a 'DUP' instruction and it duplicates anything on the bottom of the stack. The reason that it *appears* to work the same way is that RPL machines have a command line which is separate from level 1 of the stack and ENTER from the keyboard effectively pushes the command line onto the stack. Any ENTER on an RPL machine with nothing on the command line operates like a 'DUP' and has no effect on stack lift. Hope this helps. And anyone who cares to correct me or make this more understandable please jump in. Cheers, -Marwan
Here is the relevant section from the HP41CX manual (I'll try to find the section in the 15C manual and post that separately): Stack Lift
Operations in the HP-41 C are of three types with respect to their effect on the stack. Most Enabling Operations
All operations on the HP-41 C other than those listed below (under Disabling Operations and Disabling Operations
If you key in a number immediately following a disabling operation, the stack is not lifted. ENTER, CLx, Sigma+, Sigma- Neutral Operations
Neutral operations are those that do not alter the status of the stack lift, so that whether or not
PRGM, ALPHA, ON, CHS, EEX, USER, <--, shift Edited: 29 Mar 2012, 9:48 a.m.
Re: HP 15c question about [ENTER] - nina scholz - 03-29-2012 thank you for your explanation, and of course from the others as well.
i found in the manual page 210 appendix b the action of enter.
Re: HP 15c question about [ENTER] - M. Joury - 03-29-2012 Glad you found it. I found it as well and was trying to figure out how to post it. It was quite a bit longer and more detailed than the HP41 manual version :). Cheers,
-Marwan
|