| |

VerySource

 Forgot password?
 Register
Search
View: 29|Reply: 2

What is the difference between AND AX and X AND Y, when are they used, and what do they mean? .

[Copy link]

1

Threads

1

Posts

2

Credits

Newbie

Rank: 1

Credits
2

 China

Post time: 2020-3-9 14:30:01
| Show all posts |Read mode
What is the difference between AND AX and X AND Y, when are they used, and what do they mean? .
Reply

Use magic Report

0

Threads

22

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 2020-6-6 13:30:02
| Show all posts
AND ax, ?? is a cpu instruction, bit logic and operation instruction. Generally used to judge whether the specified bit is 0/1
X AND Y is a logical judgment statement, used to realize that both conditions are true judgments. It will eventually be converted into multiple equivalent cpu instructions by the compiler. In order to avoid miscombination with cpu instructions AND, generally use&&Instead:
  .if (AL <= '9')&&(AL >= '0')
      sub al, '0'
  .else
  ....
Reply

Use magic Report

0

Threads

10

Posts

9

Credits

Newbie

Rank: 1

Credits
9

 United States

Post time: 2020-6-20 08:30:02
| Show all posts
What do you mean? Does it mean two meanings of and:

0 bit and

1 logical and
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list