0

If I have to compare some bits to a certain integer n, how do I do it?
For example: I need to see if the bits a[3:0] are greater than n.

So far I have this (and I know it doesn't work):

while( ((a >> 0) & 1) > n );

I'm new to this and my English its not great so if I don't explain myself well I'm sorry, I'll try my best.

GSerg
  • 76,472
  • 17
  • 159
  • 346

0 Answers0