en-us_products:mpino_studio2:box_functions:bit_operations:wxor
Table of Contents
WXOR Box Function
Word XOR
Category: Bitwise Operation Box Functions
Behavior
Applies bitwise XOR to two WORD values and stores the result.
Syntax and Arguments
Syntax: WXOR D0 D1 D2
- 1st = S1: address or constant
- 2nd = S2: address or constant
- 3rd = D: result destination address
Behavior Example
| Run condition | Before | Command entered | Expected result |
|---|---|---|---|
| Left condition ON | D0=0x00CC, D1=0x00AA | WXOR D0 D1 D2 | D2=0x0066 |
Cautions
- The operation applies to all 16 bits of the WORD.
Box Functions in the Same Category
- WAND View details — Word AND
- WOR View details — Word OR
- WNOT View details — Word NOT
- SHL View details — Shift Left
- SHR View details — Shift Right
- ROL View details — Rotate Left
- ROR View details — Rotate Right
en-us_products/mpino_studio2/box_functions/bit_operations/wxor.txt · Last modified: by 127.0.0.1
