116
4-6
.
Data Operation Instructions
Mnemonic
Function
Chapter
ADD
Addition
4-6-1
SUB
Subtraction
4-6-2
MUL
Multiplication
4-6-3
DIV
Division
4-6-4
INC
Increment
4-6-5
DEC
Decrement
4-6-5
MEAN
Mean
4-6-6
WAND
Logic Word And
4-6-7
WOR
Logic Word Or
4-6-7
WXOR
Logic Exclusive Or
4-6-7
CML
Compliment
4-6-8
NEG
Negation
4-6-9
4-6-1 Addition [ADD]
1. Summary
Add two numbers and store the result
Add [ADD]
16 bits
ADD
32 bits
DADD
Execution
condition
Normal ON/OFF/falling or
rising pulse edge
Suitable Models
XD, XL
Hardware
requirement
-
Software
requirement
-
2. Operands
Operands
Function
Data Type
Three operands
S1
The add operation data address
16 bit/32 bit, BIN
S2
The add operation data address
16 bit/32bit, BIN
D
The result address
16 bit/32bit, BIN
Two operands
D
Be Added data and result data address 16 bit/32bit, BIN
S1
Add data address
16 bit/32bit, BIN