User manual

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 complement + 1) (- Result)