Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-9
R7F4
R7F3
R7F2
R7F1
R7F0
Process
time
(µ s)
Classification
Item number
Ladder symbol
Instruction
symbol
Instruction
name
Process descriptions I/O types used
DERERR SD V C
MICRO-EH
Steps
Remarks
Shift/rotate
10 BSR(d, n) BCD shift
right
Shifts BCD to right by n
digits.
[Word]
d: WY, WR, WM,
TC
n: WX, WY, WR,
WM, TC,
Constant
zzzzz
32
40
3
3
Upper
case: W
Lower
case: DW
11 BSL(d, n) BCD shift
left
Shifts BCD to left by n
digits.
[Double word]
d: DY, DR, DM
n: WX, WY, WR,
WM, TC,
constant
zzzzz
32
39
3
3
Upper
case: W
Lower
case: DW
Transfer
12 MOV(d, s, n) Block
transfer
Transfers (copies) n bits (or
words) of data from I/O
number s to the n bit (or
word) range from I/O
number s.
[Bit]
d, s: R, M
n(0-255): WX,
WY, WR, WM,
TC, Constant
zzzz
153 4 *3
Upper
case: B
[Word]
d, s: WR, WM
n(0-255):WX,
WY, WR, WM,
TC, Constant
124 4 Lower
case: W
13 COPY(d, s, n) Copy Copies the bit (or word)
data of I/O number s to the
n bit (or word) range from
I/O number d.
[Bit]
d: R, M
s: X, Y, R, M,
Constant
n(0-255): WX,
WY, WR, WM,
TC, Constant
zzzz
80 4 *3
Upper
case: B
[Word]
d: WR, WM
s, n(0-255): WX,
WY, WR, WM,
TC, Constant
73 4 Lower
case: W
14 XCG(d1, d2, n) Block
exchange
Exchanges the n bit (or
word) range from I/O
number d1 and the n bit (or
word) range from I/O
number d2.
[Bit]
d1, d2: R, M
n(0-255): WX,
WY, WR, WM,
TC, Constant
zzzz
139 4 *3
Upper
case: B
[Word]
d: WR, WM
n(0-255): WX,
WY, WR, WM,
TC,
Constant
120 4 Lower
case: W
15 NOT(d) Reverse Reverses the bit for the I/O
number d value.
[Bit]
Y, R, M
zzzzz
27 2 Upper
case: B
[Word]
WY, WR, WM
22 2 Middle
case: W
Negation / Two's complement / Sign
[Double word]
DY, DR, DM
28 2 Lower
case: DW
16 NEG(d) Two's
complement
Stores two's complement of
the value stored in I/O
number d, in d.
[Word]
WY, WR, WM
zzzzz
22 2 Upper
case: W
[Double word]
DY, DR, DM
29 2 Lower
case: DW
17 ABS(d, s) Absolute
value
zzzz
30 3 Upper
case: W
Stores the absolute value of
s in d, and the sign value of
s in carry (R7F0).
(0: Positive, 1: Negative)
41 4 Lower
case: DW
[Word]
d: WY, WR, WM
s: WX, WY, WR,
WM, TC,
Constant
[Double word]
d: DY, DR, DM
s: DX, DY, DR,
DM, Constant
d
0
d
0