H
hari
hi all,
Im writing a code in which the bytes,needed to be splitted in to
nibbles.each nibble needs to be made as byte. for example:
consider 3B as byte, on splitting this I will get 3 and B.The binary
value for 3 is 0011 and B is 1011?I need to make this3 and B as byte.
What exactly need to do is as folowws
3B----> byte
0011 1011----->binary value for 3B
I need to expand(make it as bytes) 3 and B as follows )
3 ->0011 as 00001111
B->1011 as 11001111.
logic is all the bit position values should be filled with adjacent
bits(that is for eg 1010 is the value ,it should be made as
11001100 ).
How can I do this?
Thanks
Hari
Im writing a code in which the bytes,needed to be splitted in to
nibbles.each nibble needs to be made as byte. for example:
consider 3B as byte, on splitting this I will get 3 and B.The binary
value for 3 is 0011 and B is 1011?I need to make this3 and B as byte.
What exactly need to do is as folowws
3B----> byte
0011 1011----->binary value for 3B
I need to expand(make it as bytes) 3 and B as follows )
3 ->0011 as 00001111
B->1011 as 11001111.
logic is all the bit position values should be filled with adjacent
bits(that is for eg 1010 is the value ,it should be made as
11001100 ).
How can I do this?
Thanks
Hari