Search found 4 matches

by sylau
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...
by sylau
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?
by sylau
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...
by sylau
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?

:D