User manual

92
Word Conversion Instructions
Mnemonic Name
Word ladder
symbol
Double word
ladder symbol
Description
BCD
(DBCD)
BCD Conversion
Convert binary value of S to BCD and
store it in D.
BIN
(DBIN)
Binary Conversion
Convert BCD of S to binary number
and store it in D.
ENCO Encode
Store the location of the highest set
bit in S in D.
Note) It is different than function of
SPC series (2
n
+ 1)
DECO Decode
Convert the low-order 4-bit value of
S to a power of 2 (2
s
) and store it in
D.
SEG 7-Segment
Converts the low-order 4-bit value of
S to 7-segment display pattern and
store them in D.
XCHG
(DXCHG)
Exchange
Exchange D1 and D2 values.
DIS Dissemble
Separate S into N+1 units, 4 bits each,
and store them in the low 4 bits of words
starting at D.
UNI Unify
Combine the low 4 bits of S+1 words
starting at S, and store them in D
(N= 0 to 3).
S ...... 0 0 1 1 1 1 1 1 =63(DEC)
D ...... 0 1 1 0 0 0 1 1 =$63 (BCD)
When
S=$7325,
When
N=3,
When
N=3,