Conversion Instructions
Flags
Example
00000
IR 200
01000
:
01011
01012
: :
01015
LR 10
LR 1000
LR 1001 1
LR 1002 0
: :
: :
LR 1015 0
Some example Di values and the word-to-digit conversions that they produce
are shown below.
Di: 0011
S
S + 1
Di: 0013
S
S + 1
ER:
Undefined digit designator, or S plus number of digits exceeds a data
area.
Content of a source word is zero.
Indirectly addressed DM word is non-existent. (Content of *DM word is
not BCD, or the DM area boundary has been exceeded.)
When 00000 is ON, the following diagram encodes IR words 200 and 201 to the
first two digits of HR 10 and then encodes LR 10 and 11 to the last two digits of
HR 10. Although the status of each source word bit is not shown, it is assumed
that the bit with status 1 (ON) shown is the highest bit that is ON in the word.
IR 201
01100
:
1
01109
1
0
01110
0
:
: :
:
0
01115
0
LR 11
LR 1100
:
LR 1108 1
:
LR 1109 0
:
: :
:
LR 1115 0
R
0
S
1
S + 1
2
S + 2
3
S + 3
R
S
0
S + 1
1
S + 2
2
S + 3
3
Address Instruction
DMPX(77)
00000
LD
200
00001
DMPX(77)
HR 10
#0010
DMPX(77)
00002
DMPX(77)
LR 10
HR 10
#0012
HR 10
B
Digit 0
9
Digit 1
1
Digit 2
8
Digit 3
Section
7-20
Di: 0030
R
0
1
2
3
Di: 0032
R
0
1
2
3
Operands
00000
200
HR
10
#
0010
LR
10
HR
10
#
0012
445
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?