Search found 4 matches
- 13 Aug 2017 09:02
- Forum: DOS Batch Forum
- Topic: Circular left shift
- Replies: 7
- Views: 6527
Re: Circular left shift
Aacini, is there a way to make it so that the number of bits I am shifting by is variable? Yes. Instead "4" put the desired bits, instead "28" put "32-bits" and adjust the mask: set /A "bits=4, shift=x<<bits | x>>32-bits&(1<<bits)-1" Antonio Thank you! If...
- 13 Aug 2017 07:10
- Forum: DOS Batch Forum
- Topic: Circular left shift
- Replies: 7
- Views: 6527
Re: Circular left shift
Aacini, is there a way to make it so that the number of bits I am shifting by is variable?
- 12 Aug 2017 17:09
- Forum: DOS Batch Forum
- Topic: Circular left shift
- Replies: 7
- Views: 6527
Circular left shift
Hello, I am trying to implement a circular left shift in set /a. Regular left shift works well, but I cannot rotate the front bits back. For example set /a x=0xAA00FF00 x is now in binary: 10101010000000001111111100000000 in hexadecimal: AA00FF00 If I circularly left shifted it by 4 bits, x should b...
- 13 Jun 2015 16:01
- Forum: DOS Batch Forum
- Topic: Streams
- Replies: 1
- Views: 2384
Streams
Can someone explain to a complete beginner to streams about streams, how to use them, and other quirks?