paul.mcallister
- 16th February 2005, 04:29
Hi all,
Could some one explain the difference between a bitwise AND "$" compared to a conventional AND.
Thanks, Paul
mister_e
- 16th February 2005, 05:22
$ mean that you'll test hexadecimal value
$0f = decimal 15 = 00001111 binary
binary %
Hexadecimal $
Conventional 'AND' is use for condition statements like IF
IF (PORTB=$FF) AND (PORTA.1=1) then
Bitwise AND '&' is to process logical stuff
Let's say PORTB= $F3
Myvar = PORTB & $0F
Result of MyVar will be $03
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.