
Rev.1.02
REJ03B0179-0102
May 25, 2007
Page 102 of 124
4571 Group
MACHINE INSTRUCTIONS (INDEX BY ALPHABET) (continued)
WRST
(Watchdog timer ReSeT)
Instruc-
tion
code
1
0
1
D
9
D
0
0 2
Number of
words
Number of
cycles
Flag CY
Skip condition
0
1
0
0
0
0
2
A
0 16
1
1
-
(WDF1) = 1
Opera-
tion:
(WDF1) = 1
(WDF1)
←
0
Grouping:
Description: Clears (0) to the WDF1 flag and skips the next instruction
when watchdog timer flag WDF1 is “1”. When the WDF1
flag is “0”, executes the next instruction. Also, stops the
watchdog timer function when executing the WRST
instruction immediately after the DWDT instruction.
Other operation
XAM j
(eXchange Accumulator and Memory data)
Instruc-
tion
code
1
0
1
1
0
D
9
D
0
j
Number of
words
Number of
cycles
Flag CY
Skip condition
1
j
j
j
2
2
D
j
16
1
1
-
-
Opera-
tion:
(A)
←
→
(M(DP))
(X)
←
(X)EXOR(j)
j = 0 to 15
Grouping:
Description: After exchanging the contents of M(DP) with the contents
of register A, an exclusive OR operation is performed
between register X and the value j in the immediate field,
and stores the result in register X.
RAM to register transfer
XAMD j
(eXchange Accumulator and Memory data and Decrement register Y and skip)
Instruc-
tion
code
1
0
1
1
1
1
j
j
j
j
2
D
9
D
0
Number of
words
Number of
cycles
Flag CY
Skip condition
2
F
j
16
1
1
-
(Y) = 15
Opera-
tion:
(A)
←
→
(M(DP))
(X)
←
(X)EXOR(j)
j = 0 to 15
(Y)
←
(Y)
1
Grouping:
Description: After exchanging the contents of M(DP) with the contents
of register A, an exclusive OR operation is performed
between register X and the value j in the immediate field,
and stores the result in register X.
Subtracts 1 from the contents of register Y.
As a result of subtraction, when the contents of register Y
is 15, the next instruction is skipped. When the contents of
register Y is not 15, the next instruction is executed.
RAM to register transfer
XAMI j
(eXchange Accumulator and Memory data and Increment register Y and skip)
Instruc-
tion
code
1
0
1
1
1
0
j
j
j
j
2
D
9
D
0
Number of
words
Number of
cycles
Flag CY
Skip condition
2
E
j
16
1
1
-
(Y) = 0
Opera-
tion:
(A)
←
→
(M(DP))
(X)
←
(X)EXOR(j)
j = 0 to 15
(Y)
←
(Y) + 1
Grouping:
Description: After exchanging the contents of M(DP) with the contents
of register A, an exclusive OR operation is performed
between register X and the value j in the immediate field,
and stores the result in register X.
Adds 1 to the contents of register Y. As a result of addition,
when the contents of register Y is 0, the next instruction is
skipped. When the contents of register Y is not 0, the next
instruction is executed.
RAM to register transfer