Справочник Пользователя для Mitsubishi Electronics FXCPU
9 Applied Instructions (Arithmetic and Logical Operation)
167
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
O
utlin
e
e
2
Instruc
tion Li
st
3
Configurati
on of
Instruction
4
Ho
w t
o R
ea
d
Explanati
on of
Ins
truction
truction
s
5
B
asic
Instruction
6
Step Ladder
Instruct
ions
7
Ap
pl
ied Inst
ruct
io
io
ns
(Program Flow)
8
Appl
ied
ied
In
stru
cti
cti
ons
(Mov
e and
C
omp
are)
are)
9
App
lie
lie
d Instr
uction
s
s
(Ari
thm
eti
thm
eti
c and
Lo
gic
al O
per
at
ion)
10
App
lied Inst
lied Inst
ructi
ons
ons
(Rot
ati
ati
on and
Shift O
perati
on)
9. Applied Instructions (Arithmetic and Logical Operation)
This chapter introduces the instructions for arithmetic operations and logical operations of numeric data.
Instruction name
Function
Reference
ADDP
Addition
Section 9.1
DADD
DADDP
SUBP
Subtraction
Section 9.2
DSUB
DSUBP
MULP
Multiplication
Section 9.3
DMUL
DMULP
DIVP
Division
Section 9.4
DDIV
DDIVP
INC
Increment
Section 9.5
INCP
DINC
DINCP
DEC
Decrement
Section 9.6
DECP
DDEC
DDECP
WAND
Logical Word AND
Section 9.7
WANDP
DAND
DANDP
WOR
Logical Word OR
Section 9.8
WORP
DOR
DORP
WXOR
Logical Exclusive OR
Section 9.9
WXORP
DXOR
DXORP
NEG
Negation
Section 9.10
NEGP
DNEG
DNEGP