Post Reply 
(15c)(35s)(some other RPN) Flags toggle / inverting
04-26-2018, 05:46 PM
Post: #3
RE: (15c)(35s)(some other RPN) Flags toggle / inverting
(04-26-2018 04:02 PM)SlideRule Wrote:  The (some other RPN) refrenece in your post omits the 41 & its' inherent command(s):
FC?C Check whether flag nn is clear and then clear
&
FS?C Check whether flag nn is set and then clear

FS?C commands were already available on the 67/97: testing flags 2 and 3 also cleared them, so in effect it's a FS?C 2 and FS?C 3.

But this alone does not toggle a flag. Here the solution is:

FC?C nn
SF nn

This toggles flag nn with just two commands, i.e. with a minimum number of steps.

As long as there is not a dedicated "flip" command, that is: the WP34s has a FF command (flip flag) that does exactly this. ;-)

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


Messages In This Thread
RE: (15c)(35s)(some other RPN) Flags toggle / inverting - Dieter - 04-26-2018 05:46 PM



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