Quote Originally Posted by CuriousOne View Post
But I have issue with statement for dividing bit variable into two. Say I have %10101010. How should I divide it into two variables, one which has 5 bits from left, and another having 3 bits from right?
Something like this?

Code:
byte_var    var byte
a_left         var byte
b_left         var byte

byte_var=%10101010
a_left=byte_var & %11111000
b_left=byte_var & %00000111
Ioannis