Bit problems .....
Moderator: Benj
Bit problems .....
Can't compare the bits of the variable...
What am I doing wrong?
What am I doing wrong?
- Attachments
-
- UU
- UUUUU.jpg (22.27 KiB) Viewed 5019 times
-
- BB
- BOOL.jpg (23.53 KiB) Viewed 5019 times
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: Bit problems .....
Hi Osta,
I think that's a good result.
0b00000001 and 0b00110010 =0b00000000,
0b00000001 and 0b00011001=0b00000001,
0b00000000 or 0b00000001=0b00000001.
Regards,
Lagoda
I think that's a good result.
0b00000001 and 0b00110010 =0b00000000,
0b00000001 and 0b00011001=0b00000001,
0b00000000 or 0b00000001=0b00000001.
Regards,
Lagoda
Re: Bit problems .....
Hi Lagoda!!!
No difference.....
No difference.....
- Attachments
-
- Ha
- Ha.jpg (16.98 KiB) Viewed 5010 times
-
- oo
- OO.jpg (31.92 KiB) Viewed 5010 times
Re: Bit problems .....
No difference...
- Attachments
-
- rez
- Rez.jpg (19.53 KiB) Viewed 5009 times
-
- 5
- N5.jpg (31.43 KiB) Viewed 5009 times
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: Bit problems .....
Hi Osta,
What value do you want to get as a result?
Do you agree with the way I described the calculation?
Lagoda
What value do you want to get as a result?
Do you agree with the way I described the calculation?
Lagoda
Re: Bit problems .....
Рш Lagoda!
Yes, I agree!!!
I have kontralirovat selectively a few bits of one variable.
Yes, I agree!!!
I have kontralirovat selectively a few bits of one variable.
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: Bit problems .....
Hi Osta,
What value do you want to get as a result?
Do you agree with the calculation method that I described?
Lagoda
What value do you want to get as a result?
Do you agree with the calculation method that I described?
Lagoda
-
- Posts: 170
- Joined: Fri Jul 15, 2016 9:51 pm
- Has thanked: 69 times
- Been thanked: 61 times
- Contact:
Re: Bit problems .....
Hi Osta,
I think the operator of XOR is "^". The operator of OR is "|".
Lagoda
I think the operator of XOR is "^". The operator of OR is "|".
Lagoda