<!-- var kmNextPage = "armasm_dom1359731182259.htm"; var kmPrevPage = "armasm_dom1359731181541.htm"; var kmNextPageTitle = "Relational operators"; var kmPrevPageTitle = "Shift operators"; var kmBreadCrumbs = "<a href=\"default.htm\">Home</a> &raquo; <a href=\"armasm_dom1359731172022.htm\">Symbols, Literals, Expressions, and Operators</a> &raquo; Addition, subtraction, and logical operators"; kmSetupPaging (); kmNavButtons(); //--> Addition, subtraction, and logical operators

7.24 Addition, subtraction, and logical operators

Addition, subtraction, and logical operators act on numeric expressions.

Logical operations are performed bitwise, that is, independently on each bit of the operands to produce the result.
The following table shows the addition, subtraction, and logical operators:

Table 7-6 Addition, subtraction, and logical operators

Operator
Alias
Usage
Explanation
`+`

`A+B`
`-`

`A-B`
Subtract B from A
`:AND:`
`&`
`A:AND:B`
Bitwise AND of A and B
`:EOR:`
`^`
`A:EOR:B`
Bitwise Exclusive OR of A and B
`:OR:`

`A:OR:B`
Bitwise OR of A and B
The use of `|` as an alias for `:OR:` is deprecated.