On Sun, Feb 10, 2013 at 8:34 PM, mircea2012 wro= te: > Hy. > For example if I have a variable count =3D 30. > In binary sistem 30 =3D 11110. > I must do something like that : > if bit 4 is logic one > AND > bit 3 is logic one > AND > bit 2 is logic one > AND > bit 1 is logic one > DO SOMETHING. > Thank you. > > Hi, I noticed you asked this on Stack Exchange also, glad to see you got some good answers here (as well as one from Olin on SE now I see) Just a small tip - it's worth mentioning either the microcontroller when dealing with Assmebler, since (as you probably know already) different microcontollers have different syntax and range of commands for their assembly languages. This will help you to get a code example rather than the pseudo code Olin gave you. See these links for some info: http://en.wikipedia.org/wiki/Assembly_language http://en.wikipedia.org/wiki/Reduced_instruction_set_computing http://en.wikipedia.org/wiki/Complex_instruction_set_computing --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .