Conversion Instructions
Instruction
Symbol/Operand
Mnemonic
Code
DATA ENCODER
DMPX(077)
DMPX
@DMPX
077
S: 1st source
word
R: Result word
C: Control word
ASCII CONVERT
ASC(086)
ASC
@ASC
086
S: Source word
Di: Digit
designator
D: 1st destination
word
106
FInds the location of the first or last ON bit within the source word (or
16-word range), and writes that value to the specified digit (or byte) in
the result word.
S
16-to-4 bit conversion
R
FInds leftmost bit
C
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost
bit (m) is writ-ten to
R.)
R
256-to-8 bit conversion
l=0 (Convert one 16-word range.)
Finds leftmost bit
(Highest bit address)
R
Converts 4-bit hexadecimal digits in the source word into their 8-bit
ASCII equivalents.
S
First digit to convert
Di
D
Number of
digits (n+1)
Left (1)
Function
C
Leftmost bit
n=2 (Start with digit 2.)
C
Leftmost bit
256-to-8 bit decoding
(The location of the leftmost bit in the 16-
word range (m) is written to R.)
n=1 (Start with byte 1.)
Di
Right (0)
Section 3-10
Location
Execution condition
Output
Required
l=1 (Convert
2 words.)
Rightmost bit
Output
Required
Need help?
Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?