![Omron CJ1G-CPUxx Instructions Manual Download Page 468](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491468.webp)
447
Conversion Instructions
Section 3-12
The following diagram shows some example values for C and the 16-to-4 bit
conversions that they produce.
256-to-8 bit Conversion
When the fourth (leftmost) digit of C is 1, DMPX(077) finds the locations of the
leftmost (highest bit address) or rightmost (lowest bit address) ON bits in one
or two 16-word ranges of source words. The locations of these bits are written
to R beginning with the specified byte. (Set the third digit of C to 0 to find the
leftmost ON bits or 1 to find the rightmost ON bits.)
C: #0011
C: #0030
C: #0013
C: #0032
R
R
R
R
Digit 1 Digit 0
Digit 3 Digit 2
Digit 1 Digit 0
Digit 3 Digit 2
Digit 1 Digit 0
Digit 3 Digit 2
Digit 1 Digit 0
Digit 3 Digit 2
l
=
0 (Convert one 16-word range.)
n=1 (Start with byte 1.)
256-to-8 bit decoding
(The location of the leftmost bit in the
16-word range (m) is written to R.)
Finds leftmost bit
(Highest bit address)
C
R
Leftmost
bit
Rightmost
bit
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...