Assembly logic operation commands

Source: Internet
Author: User

1. No Operation Command not

Not OPRD

Reverse the OPRD and send it back to OPRD.

No effect on flag Spaces

 

2. Operation commands and [and]

And oprd1, oprd2

Oprd1 and oprd2 are executed and the result is sent to oprd1

After execution, cf = of = 0 indicates PF, ZF, and SF indicate the calculation result. AF is not defined.

A specific operand and Its Value remain unchanged, so that the carry mark cf = 0

 

3. or operation instructions or [or]

Or oprd1 oprd2

Flags are the same as operation commands.

An operand itself or, the value remains unchanged, so that the carry mark cf = 0

 

4. Exclusive or operation commands XOR [exclusive or]

XOR oprd1 oprd2

Flags are the same as operation commands.

A specific operand exclusive or with a value unchanged. The carry mark cf = 0

It is the same as 0 or. It is the same as 1 or the opposite.

 

5. Test command

Test oprd1 oprd2

The command is similar to and, but the result is not sent back.

After the command is executed, ZF, PF, and SF reflect the calculation result. cf = of = 0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.