Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #619

Re: Can anyone spot why this menu doesn't change anything please.

From Martin Bazley <martin.bazley@blueyonder.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Can anyone spot why this menu doesn't change anything please.
Message-ID <1fc4a40252.martin@blueyonder.co.uk> (permalink)
References <b23406a1-d5de-42a9-8904-ae0fcdc5b8ab@s7g2000yqk.googlegroups.com> <5202921b82News03@avisoft.f9.co.uk> <5cfafa70-0593-461f-a7e5-0acda11e9a84@s7g2000yqk.googlegroups.com> <52029c18aaNews03@avisoft.f9.co.uk>
Organization virginmedia.com
Date 2011-08-14 14:18 +0100

Show all headers | View raw


The following bytes were arranged on 14 Aug 2011 by Martin :

> On 14 Aug, in article
> <5cfafa70-0593-461f-a7e5-0acda11e9a84@s7g2000yqk.googlegroups.com>,
>    Gazza <usenet@garethlock.com> wrote:
> > Now I guess I'll have to find a bit of code that DOES clear the bit at
> > <pos> in bitmask <mask> lol...
>
> You could try...
>     mask% = mask% AND NOT (1<<pos%)

Oh, dear, oh, dear, I did rather suspect this from your unusually
excessive use of entire procedures to perform trivial tasks like those
above, and from vague memory of your other queries.

I'm not going to explain the entire set of principles behind Boolean
algebra to you - look it up yourself for a change, you won't get
anywhere in programming if you have no idea how it works - but another
change you should have made is replacing PROCdev_togglebit with this:

mask% = mask% EOR (1<<pos%)

-- 
  __<^>__   === RISC OS is a work of art.  Some people adore it,  ===
 / _   _ \  === others can't see the point of it, and it's really ===
( ( |_| ) ) === expensive.                                        ===
 \_>   <_/  ======================= Martin Bazley ===================

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 07:01 -0700
  Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-13 16:18 +0100
    Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 09:47 -0700
      Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 11:41 -0700
        Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-13 23:35 +0100
          Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-13 15:45 -0700
            Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 10:54 +0100
              Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-14 04:27 -0700
                Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 12:43 +0100
                Re: Can anyone spot why this menu doesn't change anything please. Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-08-14 14:18 +0100
                Re: Can anyone spot why this menu doesn't change anything please. Martin <News03@avisoft.f9.co.uk> - 2011-08-14 15:24 +0100
                Re: Can anyone spot why this menu doesn't change anything please. "Barry Allen (news)" <evanallen@onetel.net.uk.invalid> - 2011-08-14 15:48 +0100
                Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-14 08:46 -0700
                Re: Can anyone spot why this menu doesn't change anything please. Alan Wrigley <spamhater@keepyourfilthyspamtoyourself.co.uk> - 2011-08-14 18:36 +0100
                Re: Can anyone spot why this menu doesn't change anything please. Gazza <usenet@garethlock.com> - 2011-08-21 02:50 -0700
  Re: Can anyone spot why this menu doesn't change anything please. Martin Bazley <martin.bazley@blueyonder.co.uk> - 2011-08-13 18:00 +0100

csiph-web