Rotating bits left in BASIC



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!!
.



Relevant Pages

  • Re: Rotating bits left in BASIC
    ... I Googled and came across this from John Kortink (Message-ID: ... Am I being particulary slow in working out a way to do this to rotate ... The impossible I can do at once, miracles take a little longer!! ...
    (comp.sys.acorn.programmer)
  • Re: Rotating bits left in BASIC
    ... I Googled and came across this from John Kortink (Message-ID: ... Am I being particulary slow in working out a way to do this to rotate ... Steve Revill @ Home ...
    (comp.sys.acorn.programmer)