
Instruction Set and Execution Times
Appendix C
138
Name/
mnemonic
Operands
*
Description
Key inputs
Symbol
MOVE NOT
MVN(31)
MVN(31)
S
D
FUN
3
ENT
ENT
ENT
1
S
D
Moves the inverse content of a specified word or a
specified constant to a destination word. The Equals
Flag will turn ON when 0 is moved.
COMPARE
CMP(32)
CMP(32)
Cp1
Cp2
FUN
3
ENT
ENT
ENT
2
Cp1
Cp2
Compares the contents of two words or constants and
turns ON the Equals, Less Than, or Greater Than Flag
to indicate which value is larger. These flags can then
be used to control operation based on this comparison.
Cp1./Cp2:
I/O
W
LR
TC
DR
*
DR
#
SHIFT
REGISTER
SFT(33)
SFT(33)
Wd
IN
SP
R
FUN
3
3
ENT
ENT
Wd
Shifts the input condition (IN) into a register and shifts
the bits in the register on each rising edge of the shift
pulse (SP). The register is reset to 0 when the reset
input (R) turns ON.
Wd:
O
W
LR
DR
BLOCK
COMPARE
BCMP(34)
BCMP(34)
CD
CB
R
FUN
3
ENT
4
ENT
CD
ENT
CB
ENT
R
N is the least significant digit of CB and determines the
size of the comparison block; there will be N+1
comparison ranges. BCMP(34) compares CD to the
ranges defined by a block consisting of CB+1, CB+2,
..., CB+(2N+2). Each range is defined by two words,
the first one providing the lower limit and the second
word providing the upper limit. The corresponding bit of
the result word, R, will be turned ON whenever CD is
within the preset range.
CB:
DR
CD:
I/O
W
D
LR
TC
DR
*
DR
#
R:
O
W
LR
DR
Arithmetic Instructions
Name/
mnemonic
Symbol
Key inputs
Description
Operands
*
BCD ADD
ADD(40)
ADD(40)
Au
Ad
R
FUN
4
0
ENT
ENT
ENT
ENT
Au
Ad
R
Adds two BCD (binary-coded decimal) values and the
contents of the Carry Flag and places the result in the
result word (R) and the Carry Flag. The Carry Flag
must normally be cleared before executing ADD(40).
Au + Ad +
R
CY
CY
R:
O
W
LR
DR
*
DR
Au/Ad:
I/O
W
D
LR
TC
DR
*
DR
#
BCD
SUBTRACT
SUB(41)
SUB(41)
Mi
Su
R
FUN
4
1
ENT
ENT
ENT
ENT
Mi
Su
R
Subtracts one BCD (binary-coded decimal) value and
the contents of the Carry Flag from another BCD value
and places the result in the result word (R) and the
Carry Flag. The Carry Flag must normally be cleared
before executing SUB(41).
Mi - Su
R
CY
CY
R:
O
W
LR
DR
*
DR
Mi/Su:
I/O
W
D
LR
TC
DR
*
DR
#
LOGICAL
AND
ANDW(42)
ANDW(42)
I1
I2
R
FUN
4
2
ENT
ENT
ENT
ENT
I1
I2
R
Performs an AND between two words one bit at a time
and places the result in the result word (R).
I1
R
I2
AND
R:
O
W
LR
DR
*
DR
I1/I2:
I/O
W
D
LR
TC
DR
*
DR
#