Question about Stack and Roll
|
07-01-2016, 03:16 PM
(This post was last modified: 07-01-2016 03:17 PM by wojtek.)
Post: #3
|
|||
|
|||
RE: Question about Stack and Roll
(07-01-2016 02:03 PM)Antlab Wrote: Hi all. It is correct (if you press Roll Down after each Enter). I believe all HP rpn calculators behave the same way. Make a quick test and clear the stack (press "clear" and Enter 4 times) then press: 1, Enter , 2. You will get the stack with: 0,0,1,2 (from T to X). But if you press Enter after 2 as well and then will inspect the stack it will contain: 0,1,2,2 (withs X register duplicated in Y). This is because of convention applied by HP that Enter moves up the stack and sets some flag what makes the next number entered replace the duplicated X register. If you press Roll down the flag is cleared and the duplicated value remains in X and Y registers |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Question about Stack and Roll - Antlab - 07-01-2016, 02:03 PM
Must be a bad emulator - striegel - 07-01-2016, 02:53 PM
RE: Question about Stack and Roll - wojtek - 07-01-2016 03:16 PM
Expected behavior would not drop the 1 from the stack - striegel - 07-01-2016, 03:27 PM
RE: Question about Stack and Roll - wojtek - 07-01-2016, 03:38 PM
RE: Question about Stack and Roll - Sylvain Cote - 07-01-2016, 04:05 PM
RE: Question about Stack and Roll - wojtek - 07-01-2016, 04:20 PM
RE: Question about Stack and Roll - Sylvain Cote - 07-01-2016, 06:18 PM
RE: Question about Stack and Roll - wojtek - 07-01-2016, 06:38 PM
RE: Question about Stack and Roll - Antlab - 07-01-2016, 07:07 PM
RE: Question about Stack and Roll - Guenter Schink - 07-01-2016, 07:33 PM
RE: Question about Stack and Roll - Antlab - 07-02-2016, 04:52 PM
RE: Question about Stack and Roll - Guenter Schink - 07-02-2016, 06:24 PM
|
User(s) browsing this thread: 1 Guest(s)