5-1SectionCPM2B Function Codes
72
5-1 CPM2B Function Codes
The following table lists the CPM2B instructions that have fixed function codes.
Each instruction is listed by mnemonic and by instruction name. Use the num-
bers in the leftmost column as the left digit and the number in the column heading
as the right digit of the function code.
Left Right digit
digit
0 1 2 3 4 5 6 7 8 9
0
NOP
NO
OPERATION
END
END
IL
INTERLOCK
ILC
INTERLOCK
CLEAR
JMP
JUMP
JME
JUMP END
(@) FAL
FAILURE
ALARM AND
RESET
FALS
SEVERE
FAILURE
ALARM
STEP
STEP
DEFINE
SNXT
STEP START
1
SFT
SHIFT
REGISTER
KEEP
KEEP
CNTR
REVERS-
IBLE
COUNTER
DIFU
DIFFER-
ENTIATE UP
DIFD
DIFFER-
ENTIATE
DOWN
TIMH
HIGH-
SPEED
TIMER
(@) WSFT
WORD
SHIFT
(@) ASFT
ASYNCHRO-
NOUS SHIFT
REGISTER
--- ---
2
CMP
COMPARE
(@) MOV
MOVE
(@) MVN
MOVE NOT
(@) BIN
BCD TO
BINARY
(@) BCD
BINARY TO
BCD
(@) ASL
SHIFT LEFT
(@) ASR
SHIFT
RIGHT
(@) ROL
ROTATE
LEFT
(@) ROR
ROTATE
RIGHT
(@) COM
COMPLE-
MENT
3
(@) ADD
BCD ADD
(@) SUB
BCD
SUBTRACT
(@) MUL
BCD
MULTIPLY
(@) DIV
BCD
DIVIDE
(@) ANDW
LOGICAL
AND
(@) ORW
LOGICAL OR
(@) XORW
EXCLUSIVE
OR
(@) XNRW
EXCLUSIVE
NOR
(@) INC
INCREMENT
(@) DEC
DECRE-
MENT
4
(@) STC
SET CARRY
(@) CLC
CLEAR
CARRY
--- --- --- --- (@) MSG
MESSAGE
DISPLAY
(@) RXD
RECEIVE
(@) TXD
TRANSMIT
---
5
(@) ADB
BINARY ADD
(@) SBB
BINARY
SUBTRACT
(@) MLB
BINARY
MULTIPLY
(@) DVB
BINARY
DIVIDE
(@) ADDL
DOUBLE
BCD ADD
(@) SUBL
DOUBLE
BCD
SUBTRACT
(@) MULL
DOUBLE
BCD
MULTIPLY
(@) DIVL
DOUBLE
BCD
DIVIDE
(@) BINL
DOUBLE
BCD-TO-
DOUBLE
BINARY
(@) BCDL
DOUBLE
BINARY-TO-
DOUBLE
BCD
6
CMPL
DOUBLE
COMPARE
(@) INI
MODE CON-
TROL
(@) PRV
HIGH-
SPEED
COUNTER
PV READ
(@) CTBL
COMPARI-
SON TABLE
LOAD
(@) SPED
SPEED OUT-
PUT
(@) PULS
SET PULSES
(@) SCL
SCALING
(@) BCNT
BIT COUNT-
ER
(@) BCMP
BLOCK
COMPARE
(@) STIM
INTERVAL
TIMER
7
(@) XFER
BLOCK
TRANSFER
(@) BSET
BLOCK SET
--- (@) XCHG
DATA
EXCHANGE
(@) SLD
ONE DIGIT
SHIFT LEFT
(@) SRD
ONE DIGIT
SHIFT
RIGHT
(@) MLPX
4-TO-16
DECODER
(@) DMPX
16-TO-4
ENCODER
(@) SDEC
7-SEGMENT
DECODER
---
8
(@) DIST
SINGLE
WORD
DISTRIBUTE
(@) COLL
DATA
COLLECT
(@) MOVB
MOVE BIT
(@) MOVD
MOVE DIGIT
(@) SFTR
REVERS-
IBLE SHIFT
REGISTER
(@) TCMP
TABLE
COMPARE
(@) ASC
ASCII
CONVERT
--- --- (@) INT
INTERRUPT
CONTROL
9
--- (@) SBS
SUBROU-
TINE
ENTRY
SBN
SUBROU-
TINE
DEFINE
RET
SUBROU-
TINE
RETURN
--- --- --- (@) IORF
I/O
REFRESH
--- (@) MCRO
MACRO
Note 1. The shaded areas are function codes to which expansion instructions are
allocated by default or to which the user can allocate expansion instructions.
Refer to 5-3 Expansion Instructions for more details.
2. Instruction execution times are the same as those for the CPM2A and
CPM2C. Refer to the Programming Manual (W353) for details.