Amandeep Singh wrote:I cannot understand this line and subsequent line, Can anybody explain this nitty-gritty details?
What that line is doing is an AND operation. The effect of the line is to extract out the lower eight bits from the data array element into the v variable.
The next line is doing a shift right operation. The effect is to zap out the lower four bits (as everything is moved four bits to the right).
The combination of those two instructions will extract the high four bits of the lowest byte -- and put it as the lowest four bits. Play with it on paper a bit, and it all will make sense.
Henry