Bitwise AND with a variable

01162018, 10:07 AM
(This post was last modified: 01162018 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? 

« Next Oldest  Next Newest »

Messages In This Thread 
Bitwise AND with a variable  Stevetuc  01162018 10:07 AM
RE: Bitwise AND with a variable  Didier Lachieze  01162018, 10:22 AM
RE: Bitwise AND with a variable  Carlos295pz  01162018, 11:31 AM
RE: Bitwise AND with a variable  cyrille de brĂ©bisson  01172018, 06:16 AM

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