flat assembler
Message board for the users of flat assembler.
Index
> Main > question about operators and logical operations |
Author |
|
baldr 12 Apr 2013, 06:20
dev_89,
Those instructions are bitwise, i.e. they are performed on each pair of corresponding bits of operands. Flags are set according to specification (Intel SDM or AMD APM), though some of them can be deduced using common sense: ZF is set iff result is zero, SF is equal to highest bit of result, PF is set iff number of ones in least-significant byte of result is even. |
|||
12 Apr 2013, 06:20 |
|
bitRAKE 12 Apr 2013, 08:41
Helps to know how to work in binary and hexadecimal:
18 = 10010b 01 = 00001b ____________ 00 = 00000b ...here we can easily see no bits line up, vertically. So, AND acts like a filter, and if we had a large column of numbers in binary it would be easy to see the result. ..and here is a condition flag tool, by Svin.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||||||||||
12 Apr 2013, 08:41 |
|
DOS386 13 Apr 2013, 06:50
This should be in Main or (not yet created) "General programming" subforum
|
|||
13 Apr 2013, 06:50 |
|
baldr 13 Apr 2013, 11:51
DOS386,
This should be in Heap, as it's not directly related to assembly programming. |
|||
13 Apr 2013, 11:51 |
|
revolution 13 Apr 2013, 17:01
I think it is related to assembly programming. We deal with bits and logical operators all the time.
|
|||
13 Apr 2013, 17:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.