A-1-8 Increment/Decrement Instructions - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
SHIFT N-BITS
NASR
RIGHT
DOUBLE
NSRL
SHIFT N-BITS
RIGHT
A-1-8
Increment/Decrement Instructions
Instruction
Mnemonic
INCREMENT
++
BINARY
DOUBLE
++L
INCREMENT
BINARY
− −
DECREMENT
BINARY
− −L
DOUBLE DEC-
REMENT
BINARY
INCREMENT
++B
BCD
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
NASR(581)
D
C
D: Shift word
C: Control word
@
NSRL(583)
D
C
D: Shift word
C: Control word
Variations
Symbol/Operand
@
++(590)
Wd
Wd: Word
@
++L(591)
Wd
Wd: Word
@
(592)
Wd
Wd: Word
@
L(593)
Wd
Wd: 1st word
@
++B(594)
Wd
Wd: Word
Function
Shifts the specified 16 bits(NASR) or 32 bits(NSRL) of word data
to the right by the specified number of bits.
Contents of
"a" or "0"
shifted in
N bits
C: Control word
• NASR
15
12
11
8
7
C
0
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in
• NSRL
15
12
11
8
7
C
0
Always 0.
Data shifted into register
0 Hex: 0 shifted in
8 Hex: Contents of rightmost bit shifted in
Function
Increments the 4-digit hexadecimal content of the specified word
by 1.
Wd
Wd
Increments the 8-digit hexadecimal content of the specified words
by 1.
Wd+1
Wd
Decrements the 4-digit hexadecimal content of the specified word
by 1.
Wd
Wd
Decrements the 8-digit hexadecimal content of the specified
words by 1.
Wd+1
Wd
Increments the 4-digit BCD content of the specified word by 1.
Wd
Wd
Appendices
Lost
0
No. of bits to shift: 00 to 10 Hex
0
No. of bits to shift: 00 to 20 Hex
Wd+1
Wd
Wd+1
Wd
A-17

Advertisement

Table of Contents
loading

Table of Contents