Chapter 6 Instruction Details
XBC E-Type Main Unit 6-183 Ve r. 1
6.30.2 WOR, WORP, DWOR, DWORP
Instruction
Step
P M K F L T C S Z D.x
U N D R
WOR(P)
DWOR(P)
4~6 - O -
Data to execute WOR operation with S2
Data to execute WOR operation with S1
D Address to save WOR operation result in BIN 16/32
[Flag Set]
Flag Description
To be set if operation result is Zero.
1) WOR (Word OR)
(1) Saves the result of word data (16-bit) S1 and S2 operated in Logic OR for each bit in D.
2) DWOR (Double Word OR)
(1) Saves the result of double word data (32-bit) (S1+1,S1) and (S2+1,S2) operated in Logic OR for each bit in
(D+1, D).
WOR
D
b15 b8
b0
b7
1 1 0 0 0 1
1 0 0
1 1 1 0 1 1 0
S2
b8
b0
b7
S1
b15 b8
b0
b7
b15
1 1 0
1 0 0 1
1 1 0
1 1 0
1 0 0
1 1 0 1 0 1
1 1 1 1 1 1 0 1 1 0