Appendices
A-32
CJ2 CPU Unit Software User’s Manual
COLUMN TO
LINE
LINE
@LINE
063 Output Required
LINE TO
COLUMN
COLM
@COLM
064 Output Required
SIGNED BCD-
TO-BINARY
BINS
@BINS
470 Output Required
DOUBLE
SIGNED BCD-
TO-BINARY
BISL
@BISL
472 Output Required
SIGNED
BINARY-TO-
BCD
BCDS
@BCDS
471 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
LINE(063)
S
N
D
S: 1st source word
N: Bit number
D: Destination
word
0
00011110001 00001
15 00
S
N
11010010011 10001
S+1
00011011001 00111
S+2
.
.
.
.
.
.
. . .
.
.
.
01100001100 01010
S+15
10000011000 00111
S+3
0 1 1
D
1
15 00
.
.
.
Bit Bit
Bit Bit
Converts a column of bits from a 16-word range (the same
bit number in 16 consecutive words) to the 16 bits of the
destination word.
COLM(064)
S
D
N
S: Source word
D: 1st destination
word
N: Bit number
0
00001110001 00001
15 00
D
11010010011 10001
D+1
00011011001 00111
D+2
.
0 1 1 1 0 0 0 1 100 0 1 010
D+15
10000011000 00111
D+3
0 1 1
S
1
15 00
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
Bit Bit
Bi
Bit Bit
Converts the 16 bits of the source word to a column of
bits in a 16-word range of destination words (the same
bit number in 16 consecutive words).
BINS(470)
C
S
D
C: Control word
S: Source word
D: Destination
word
Signed BCD
Converts one word of signed BCD data to one word of
signed binary data.
Signed BCD format
specified in C
Signed binary
BISL(472)
C
S
D
C: Control word
S: 1st source word
D: 1st destination
word
Signed BCD
Signed BCD
Signed BCD format
specified in C
Signed binary
Signed binary
Converts double signed BCD data to double
signed binary data.
BCDS(471)
C
S
D
C: Control word
S: Source word
D: Destination
word
Signed binary
Signed BCD
Signed BCD format
specified in C
Converts one word of signed binary data to one word of
signed BCD data.