
90
Arithmetic Instructions
Mnemonic
Name
Word ladder
symbol
Double word
ladder symbol
Description
ADD
(DADD)
Decimal addition
D = S1 + S2
(Decimal operation)
ADDB
(DADDB)
BCD addition
D = S1 + S2
(BCD operation)
SUB
(DSUB)
Decimal
subtraction
D = S1 - S2
(Decimal operation)
SUBB
(DSUBB)
BCD subtraction
D = S1 - S2
(BCD operation)
MUL
(DMUL)
Decimal
multiplication
D = S1 x S2
(Decimal operation)
MULB
(DMULB)
BCD multiplication
D = S1 x S2
(BCD operation)
DIV
(DDIV)
Decimal division
D = S1/S2 (Decimal operation),
Error when S2= 0
DIVB
(DDIVB)
BCD division
D = S1/S2 (BCD operation)
Error when S2 = 0
ADC
(DADC)
Decimal addition
with carry
D = S1 + S2 + CY
(Decimal operation, include carry)
ADCB
(DADCB)
BCD addition with
carry
D = S1 + S2 + CY
(BCD operation, include carry)
SBC
(DSBC)
Decimal
subtraction with
carry
D = S1 - S2 – CY
(Decimal operation, include carry)
SBCB
(DSBCB)
BCD subtraction
with carry
D = S1 - S2 - CY
(BCD operation, include carry)
ABS
(DABS)
Absolute value
D = |D|
(Absolute value operation)
WNOT
(DNOT)
NOT
(1’s complement)
Store 1’s complement of D in D
NEG
(DNEG)
Negative
(2’s complement)
Store 2’s complement of D in D
(1’s comp 1) (- Result)
Summary of Contents for Samsung NX-CPU700p
Page 1: ...NX700 Series Controller NX CPU700p User Manual ...
Page 78: ...78 Power check flow chart ...
Page 79: ...79 Run check flow chart ...
Page 80: ...80 Error check flow chart ...
Page 82: ...82 External environment check flow chart ...
Page 86: ...86 ...
Page 98: ...98 ...
Page 102: ...102 Decimal Bin Hex BCD Gray Code Cross reference Table ...
Page 104: ...104 ...
Page 121: ......