How to do bitwise shift across several variables/array members?


Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default How to do bitwise shift across several variables/array members?

    Say there is an array, having 16 member, 1 byte each. I want to shift bits say to right in that way, that the byte that "leaves" say 1st member, gets shifted in into 2nd member, and so on (and bit shifted out from last member, shifts into 1st member). Are there any simple ways to do this, except that reading each member bit by bit, assembling in new variable and writing back?
    Last edited by CuriousOne; - 14th October 2021 at 08:40.

Similar Threads

  1. SWAP COMMAND extended to Longs and array variables
    By longpole001 in forum PBP Wish List
    Replies: 1
    Last Post: - 9th April 2018, 23:41
  2. MIBAM and Array Variables in FOR-NEXT Loops
    By Homerclese in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th August 2010, 12:50
  3. Seeting array variables in For-Next loop
    By bcd in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th October 2007, 07:01
  4. Reading Array values into variables
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 21st March 2005, 10:30
  5. List of Members
    By NavMicroSystems in forum Forum Requests
    Replies: 5
    Last Post: - 17th January 2005, 17:10

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts