Post Reply 
AND/OR/XOR on non-16C calcs
03-16-2019, 07:17 PM (This post was last modified: 03-16-2019 07:21 PM by Dieter.)
Post: #2
RE: AND/OR/XOR on non-16C calcs
(03-16-2019 06:06 PM)Matt Agajanian Wrote:  Is there a way to program conditionals (and perhaps flag tests) that simulate and, or, and xor tests?

I am not sure if I understand what you are trying to do. An "OR"-test can be done on classic RPN calculators by having the inverse of the first condition followed by the second one.

Examples:

is flag 1 or flag 2 set?

FC? 01
FS? 02

is x=0 or x>0?

X≠0?
X>0?

But since you mention the 16C: how can you do this there?
A bitwise OR is not a logical OR.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: AND/OR/XOR on non-16C calcs - Dieter - 03-16-2019 07:17 PM
RE: AND/OR/XOR on non-16C calcs - grsbanks - 03-16-2019, 10:27 PM
RE: AND/OR/XOR on non-16C calcs - Dieter - 03-17-2019, 09:16 AM
RE: AND/OR/XOR on non-16C calcs - Dieter - 03-17-2019, 04:57 PM



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