Post Reply 
Bitwise AND with a variable
01-16-2018, 10:07 AM (This post was last modified: 01-16-2018 10:08 AM by Stevetuc.)
Post: #1
Bitwise AND with a variable
If i perform an AND between 2 integers it is bitwise:

#160d AND #FFFFh gives result #160d

If one input is a real then the result is 1 if both input nonzero:
160 AND #FFFFh gives result 1

So far so good. However:
x:=#160d
x AND #FFFFh gives result 1 even though x has an integer value.
How can one perform a bitwise AND between integer variables?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Bitwise AND with a variable - Stevetuc - 01-16-2018 10:07 AM



User(s) browsing this thread: 1 Guest(s)