Xinje XD Series User Manual page 127

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

< Logic OR >
< Logic WXOR >
If use this instruction along with CML instruction, XOR NOT operation could also be
executed.
Example 1:
The 16 bits data is composed by X0~X7, and store in D0.
Transform the state of X0, X1, X2, X3 to 8421 code and store in D0.
Example 2:
Combine the low 8 bits of D0 and D2 to a word.
X0
LDP
X0
WAND D0
HFF
WAND D2
HFF
SWAP D12
WOR D10
D12
WAND
D0
WAND
D2
SWAP
WOR
D10
//X0 rising edge
D10
//Logic and, take the low 8 bits of D0 and save in D10
D12
// Logic and, take the low 8 bits of D2 and save in D12
//swap the low 8 bits and high 8 bits of D12
D20
//combine the low 8 bits of D10 and high 8 bits of D12,
and save in D20
126
0 or 0=0 0 or 1=1
1 or 0=1 1 or 1=1
0 xor 0=0 0 xor 1=1
1 xor 0=1 1 xor 1=0
HFF
D 10
HFF
D 12
D12
D12
D20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents