Post Reply 
HP16C logical operations (g shift + the keys in the "lower right corner")
09-20-2016, 03:27 PM (This post was last modified: 09-20-2016 04:24 PM by Hsilop.)
Post: #1
HP16C logical operations (g shift + the keys in the "lower right corner")
Are the g-shifted logical operations in the "lower right corner" of the keyboard (the 0-3 digits, + and -, decimal point (.) and CHS keys) supposed to produce any result when used outside of a program?

I was expecting them to work on values entered on the stack, but nothing seems to happen in the display. One might expect some value(s) to be popped off the stack, and some new value to be pushed onto it - but that would change the stack which might not be desirable if some later operation (in a program) needs the value(s) in the x (and y) registers.

PS: I should mention that I tried this on a Swiss Micros DM16L, not a HP 16C, but then they should work the same - shouldn't they?
Find all posts by this user
Quote this message in a reply
09-20-2016, 04:04 PM
Post: #2
RE: HP16C logical operations (g shift + the keys in the "lower right corner")
They disable stack lift outside a program, that seems to be it.

I could not see any comments about their behavior outside program in the manual and I tried it on a real HP-16C.
Find all posts by this user
Quote this message in a reply
09-20-2016, 04:10 PM
Post: #3
RE: HP16C logical operations (g shift + the keys in the "lower right corner")
They have also some effect on the program pointer when executed outside of a program , but they are not intended for that, they are intended to be used inside a program: If comparison is true, program execution continues; if false, program execution skips one line before continuing.
Find all posts by this user
Quote this message in a reply
09-21-2016, 05:53 AM
Post: #4
RE: HP16C logical operations (g shift + the keys in the "lower right corner")
You guys are right - The Program pointer might be affected, but otherwise the stack is untouched. The operations do NOT disable stack lift though.
Find all posts by this user
Quote this message in a reply
09-21-2016, 03:05 PM
Post: #5
RE: HP16C logical operations (g shift + the keys in the "lower right corner")
(09-21-2016 05:53 AM)damaltor Wrote:  You guys are right - The Program pointer might be affected, but otherwise the stack is untouched. The operations do NOT disable stack lift though.

Haha, you are right, I have a tendency to write that opposite... Smile

It ENABLES stack lift.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)