Rotating bits left in BASIC
- From: Andrew Conroy <a.m.conroy@xxxxxxxxxxxx>
- Date: Wed, 06 Sep 2006 22:49:27 +0100
Is there a simple way to rotate the bits in a byte (or even a word) left
within BASIC?
I Googled and came across this from John Kortink (Message-ID:
<ptkgguss3eq0on92bfkjvdnfdljlc1eu0e@xxxxxxx>) to rotate a byte A% right
by B%:
A%=A% >>> B% OR A% << (32-B%)
Am I being particulary slow in working out a way to do this to rotate
bits left?
Andrew
--
+----------------------------------------+---------------------------------+
| Andrew Conroy, Owl-Art Un-Ltd. | email: a.m.conroy@xxxxxxxxxxxxx |
| Coming to you on an Acorn RiscPC SA110 | Snail: 58 Newland Road, |
| | Worthing, |
| 'OwlArt' on IRC (ZFC A) | West Sussex. U.K. |
+----------------------------------------+---------------------------------+
The impossible I can do at once, miracles take a little longer!!
.
- Follow-Ups:
- Re: Rotating bits left in BASIC
- From: Ste (news)
- Re: Rotating bits left in BASIC
- Prev by Date: PCITV On the Omega Again
- Next by Date: Re: Rotating bits left in BASIC
- Previous by thread: PCITV On the Omega Again
- Next by thread: Re: Rotating bits left in BASIC
- Index(es):
Relevant Pages
|