Post Reply 
AND/OR/XOR on non-16C calcs
03-16-2019, 09:38 PM
Post: #3
RE: AND/OR/XOR on non-16C calcs
(03-16-2019 07:17 PM)Dieter Wrote:  
(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

Hi Dieter (and all), I mention the 16C as a reference point/example of Or/Xor/And as test types regardless of programmable.

Okay. thanks for the Or tests. How do I structure an AND test?
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 - Matt Agajanian - 03-16-2019 09:38 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: 1 Guest(s)