Omron C60K Video Game Controller User Manual


 
119
Some example Di values and the word-to-digit conversions that they produce
are shown below.
0
1
2
3
R
Di : 0011
S
S + 1
0
1
2
3
S
S + 1
S + 2
S + 3
Di : 0030
R
S
S + 1
S + 2
S + 3
0
1
2
3
Di : 0032
R
Di : 0013
0
1
2
3
S
S + 1
R
ER: Undefined digit designator, or S plus number of digits exceeds a data
area.
Content of a source word is 0000.
When 0000 is ON, the following diagram encodes IR words 10 and 11 to the
first two digits of HR 2 and then encodes DM 10 and 11 to the last two digits
of HR 2. Although the status of each source word bit is not shown, it is as-
sumed that the bit with status 1 (ON) shown is the highest bit that is ON in
the word.
0000
DMPX(77)
10
HR 2
#0010
DM10
HR 2
#0012
IR 010
1000
:
1011 1
1012 0
: :
1015 0
DM 10
DM1000
:
DM1001 1
DM1002 0
: :
DM1015 0
Digit 0
IR 011
1100
:
1109 1
1110 0
: :
1115 0
Digit 1
Digit 2
Digit 3
B
9
1
8
DM 11
DM1100
:
DM1108 1
DM1109 0
: :
DM1115 0
HR
2
DMPX(77)
Address Instruction Operands
0000 LD 0000
0001 DMPX(77)
10
HR 2
# 0010
0002 DMPX(77)
DM 10
HR 2
# 0012
Flags
Example
Data Conversion Section 5-15