Roll-down key in HP-15C



#7

The roll-down (and roll-up) key on my HP-15C do not behave as I expect them to behave. Would someone please explain the following behavior to me.

Key     X-register   Comment
----- ---------- ----------
0 0
Enter 0.00 Fill the stack with zeros.
Enter 0.00
Enter 0.00

1 1
Rv 0.00 Roll-down
2 2
Rv 0.00
R^ 2.00 I expect to see "2.00". So far, so good.
R^ 0.00 I expect to see "1.00", not "0.00"!
Where did the "1.00" go?

I see the same behavior if I exchange the locations of the two roll-ups and the two roll-downs in the above listing.

Thanks in advance for your help,
-- Steve Ross


#8

Think about it...

1 v 2 v ^ ^
- - - - - -
1 0 2 0 2 0
0 0 0 0 0 2
0 0 0 0 0 0
0 1 0 2 0 0
#9

When you roll down after entering "1", the "1" goes to level "z", 4th stack level. When you enter "2", shouldn't this lift everything a stack level up meaning that you are now losing what was in level 4, your "1"?

#10

As soon as you typed 2 in the x-register, the calculator did a stack lift and replicated the 0 in the z-register into the t-register, overwriting the 1 that had been there.

#11

You can disable the stack lift that occurs when typing the 2 if you precede it with a Clx.


#12

Thanks to all of Mark, Richard, Michael, and Marcus for your quick responses. I see that I didn't have a good understanding of "stack lift enabling" and that the stack lift did not actually "fire" until you key in the next digit. So I key in the first number, "Rv" enables the stack lifting behavior, and the second digit that I keyed in lifts the stack and causes the first number to be lost. Understood.

Thanks also to Marcus for his "CLx" work-around.

-- Steve


#13

You will find a web-based simulation of the HP-15c that has both the calculator interface and fields with the stack-levels and registers so you can see what is going on under the hood as you type in an example.

http://hp15c.com/web/hp15c.html


Nick

Edited: 15 Oct 2013, 4:13 a.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP Prime - EEX/X/Toolbox-key suggestions bluesun08 2 1,545 11-07-2013, 06:15 PM
Last Post: bluesun08
  HP PRIME : strange behavior when trying user key capability Damien 12 3,978 11-03-2013, 11:02 AM
Last Post: Joe Horn
  HP PRIME: How to use [a b/c] key from a program Joseph Ec 4 1,933 10-29-2013, 06:18 PM
Last Post: Joseph Ec
  (Printer) Roll Call Matt Agajanian 2 1,388 08-26-2013, 09:48 PM
Last Post: Matt Agajanian
  HP-15 LE Key repair question Namir 2 1,487 06-10-2013, 10:42 PM
Last Post: Namir
  HP calculators: origin of prefix key labels f and g M Habl 9 2,912 11-21-2012, 08:29 PM
Last Post: Gerson W. Barbosa
  HP Key Notes Programmes? Michael Lopez 0 957 07-02-2012, 09:26 AM
Last Post: Michael Lopez
  HP-97 Key Contact Repair Adventure LHH 0 1,007 06-09-2012, 05:26 PM
Last Post: LHH
  HP 9826A key switches David Ramsey 3 1,386 01-04-2012, 07:29 PM
Last Post: David Ramsey
  HP-15LE: Anybody else see double key registrations? BobVA 5 1,841 11-13-2011, 06:48 AM
Last Post: Jan

Forum Jump: