rlmts
Member
Hi!
Scratching my head here?!
I wanted to move a group of bits from one word to another - with a bit 'offset' (Using AB SLC 5/03)
How would you move a group of bits from somewhere in the middle of one word to the lowest end (lsb) of another word?
Eg:
Need to copy bits /5 thru /10 of word B3:5 to N7:5 (but offset)
Would you use individual rungs to energise N7:5/bits, bit by bit from B3:5/bits?
Or is there a smarter 'mathematical' method? (move with an offset?)
There's the obvious 'move with mask' but that just puts the values into the same bit positions.
Regards Richard
Scratching my head here?!
I wanted to move a group of bits from one word to another - with a bit 'offset' (Using AB SLC 5/03)
How would you move a group of bits from somewhere in the middle of one word to the lowest end (lsb) of another word?
Eg:
Need to copy bits /5 thru /10 of word B3:5 to N7:5 (but offset)
Would you use individual rungs to energise N7:5/bits, bit by bit from B3:5/bits?
Or is there a smarter 'mathematical' method? (move with an offset?)
There's the obvious 'move with mask' but that just puts the values into the same bit positions.
Regards Richard