Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #622
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Subject | Re: Can anyone spot why this menu doesn't change anything please. |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2011-08-14 15:24 +0100 |
| Message-ID | <5202aac778News03@avisoft.f9.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> <1fc4a40252.martin@blueyonder.co.uk> |
| Organization | None |
On 14 Aug, in article <1fc4a40252.martin@blueyonder.co.uk>, Martin Bazley <martin.bazley@blueyonder.co.uk> wrote: > 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 ... Can I assume this is referring to Gazza? > ...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%) Yup. That is indeed much simpler and neater. I was just trying to show the statement that was wrong, not optimise the code! Martin A -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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