572
APPENDIX C Instruction Overview
Note:
In automatic transfer to T during byte transfer to A, AL is transferred to TL.
If an instruction has plural operands, they are saved in the order indicated by MNEMONIC.
■
Arithmetic Operation Instructions
Table C.4-2 Arithmetic Operation Instruction (1 / 2)
No. MNEMONIC
~
#
Operation
TL TH AH N
Z
V
C
OPCODE
1
ADDC
A, Ri
2
1
(A)
←
(A) + (Ri) + C
-
-
-
+
+
+
+
28 to 2F
2
ADDC
A, #d8
2
2
(A)
←
(A) + d8 + C
-
-
-
+
+
+
+
24
3
ADDC
A, dir
3
2
(A)
←
(A) + (dir) + C
-
-
-
+
+
+
+
25
4
ADDC
A, @IX + off
3
2
(A)
←
(A) + ( (IX) + off) + C
-
-
-
+
+
+
+
26
5
ADDC
A, @EP
2
1
(A)
←
(A) + ( (EP) ) + C
-
-
-
+
+
+
+
27
6
ADDCW A
1
1
(A)
←
(A) + (T) + C
-
-
dH
+
+
+
+
23
7
ADDC
A
1
1
(AL)
←
(AL) + (TL) + C
-
-
-
+
+
+
+
22
8
SUBC
A, Ri
2
1
(A)
←
(A) - (Ri) - C
-
-
-
+
+
+
+
38 to 3F
9
SUBC
A, #d8
2
2
(A)
←
(A) - d8 - C
-
-
-
+
+
+
+
34
10 SUBC
A, dir
3
2
(A)
←
(A) - (dir) - C
-
-
-
+
+
+
+
35
11 SUBC
A, @IX + off
3
2
(A)
←
(A) - ( (IX) + off) - C
-
-
-
+
+
+
+
36
12 SUBC
A, @EP
2
1
(A)
←
(A) - ( (EP) ) - C
-
-
-
+
+
+
+
37
13 SUBCW A
1
1
(A)
←
(T) - (A) - C
-
-
dH
+
+
+
+
33
14 SUBC
A
1
1
(AL)
←
(TL) - (AL) - C
-
-
-
+
+
+
+
32
15 INC
Ri
3
1
(Ri)
←
(Ri) + 1
-
-
-
+
+
+
-
C8 to CF
16 INCW
EP
1
1
(EP)
←
(EP) + 1
-
-
-
-
-
-
-
C3
17 INCW
IX
1
1
(IX)
←
(IX) + 1
-
-
-
-
-
-
-
C2
18 INCW
A
1
1
(A)
←
(A) + 1
-
-
dH
+
+
-
-
C0
19 DEC
Ri
3
1
(Ri)
←
(Ri) - 1
-
-
-
+
+
+
-
D8 to DF
20 DECW
EP
1
1
(EP)
←
(EP) - 1
-
-
-
-
-
-
-
D3
21 DECW
IX
1
1
(IX)
←
(IX) - 1
-
-
-
-
-
-
-
D2
22 DECW
A
1
1
(A)
←
(A) - 1
-
-
dH
+
+
-
-
D0
23 MULU
A
8
1
(A)
←
(AL)
×
(TL)
-
-
dH
-
-
-
-
01
24 DIVU
A
17
1
(A)
←
(T) / (A) , MOD
→
(T)
dL dH dH
-
+
-
-
11
25 ANDW
A
1
1
(A)
←
(A) (T)
-
-
dH
+
+
R
-
63
26 ORW
A
1
1
(A)
←
(A) (T)
-
-
dH
+
+
R
-
73
27 XORW
A
1
1
(A)
←
(A) (T)
-
-
dH
+
+
R
-
53
28 CMP
A
1
1
(TL) - (AL)
-
-
-
+
+
+
+
12
29 CMPW
A
1
1
(T) - (A)
-
-
-
+
+
+
+
13
30 RORC
A
1
1
-
-
-
+ + -
+
0302
31 ROLCA
1
1
-
-
-
+ + -
+
32 CMP
A, #d8
2
2
(A) - d8
-
-
-
+
+
+
+
14
33 CMP
A, dir
3
2
(A) - (dir)
-
-
-
+
+
+
+
15
34 CMP
A, @EP
2
1
(A) - ( (EP) )
-
-
-
+
+
+
+
17
35 CMP
A, @IX + off
3
2
(A) - ( (IX) + off)
-
-
-
+
+
+
+
16
36 CMP
A, Ri
2
1
(A) - (Ri)
-
-
-
+
+
+
+
18 to 1F
37 DAA
1
1
decimaladjustforaddition
-
-
-
+ + + +
84
38 DAS
1
1
decimaladjustforsubtraction
-
-
-
+ + + +
94
39 XOR
A
1
1
(A)
←
(AL) (TL)
-
-
-
+
+
R
-
52
40 XOR
A, #d8
2
2
(A)
←
(AL) d8
-
-
-
+
+
R
-
54
41 XOR
A, dir
3
2
(A)
←
(AL) (dir)
-
-
-
+
+
R
-
55
42 XOR
A, @EP
2
1
(A)
←
(AL) ( (EP) )
-
-
-
+
+
R
-
57
43 XOR
A, @IX + off
3
2
(A)
←
(AL) ( (IX) + off)
-
-
-
+
+
R
-
56
44 XOR
A, Ri
2
1
(A)
←
(AL) (Ri)
-
-
-
+
+
R
-
58 to 5F
45 AND
A
1
1
(A)
←
(AL) (TL)
-
-
-
+
+
R
-
62
C
→
A
C
←
A
Содержание F2 MC-8FX Family
Страница 2: ......
Страница 4: ......
Страница 30: ...16 CHAPTER 1 DESCRIPTION 1 FPT 64P M23 FPT 64P M24 2 For the I O circuit type refer to 1 8 I O Circuit Type ...
Страница 34: ...20 CHAPTER 1 DESCRIPTION ...
Страница 35: ...21 CHAPTER 2 HANDLING DEVICES This chapter gives notes on using 2 1 Device Handling Precautions ...
Страница 38: ...24 CHAPTER 2 HANDLING DEVICES ...
Страница 39: ...25 CHAPTER 3 MEMORY SPACE This chapter describes memory space 3 1 Memory Space 3 2 Memory Map ...
Страница 43: ...29 CHAPTER 4 MEMORY ACCESS MODE This chapter describes the memory access mode 4 1 Memory Access Mode ...
Страница 56: ...42 CHAPTER 5 CPU ...
Страница 73: ...59 CHAPTER 6 CLOCK CONTROLLER ...
Страница 96: ...82 CHAPTER 6 CLOCK CONTROLLER ...
Страница 104: ...90 CHAPTER 7 RESET ...
Страница 105: ...91 CHAPTER 8 INTERRUPTS This chapter explains the interrupts 8 1 Interrupts ...
Страница 174: ...160 CHAPTER 10 TIMEBASE TIMER ...
Страница 184: ...170 CHAPTER 10 TIMEBASE TIMER ...
Страница 218: ...204 CHAPTER 13 WATCH PRESCALER ...
Страница 257: ...243 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 261: ...247 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 288: ...274 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 301: ...287 CHAPTER 17 16 BIT PPG TIMER ...
Страница 316: ...302 CHAPTER 17 16 BIT PPG TIMER ...
Страница 382: ...368 CHAPTER 21 UART SIO DEDICATED BAUD RATE GENERATOR ...
Страница 390: ...376 CHAPTER 22 I2C ...
Страница 395: ...381 CHAPTER 22 I2C ...
Страница 399: ...385 CHAPTER 22 I2C ...
Страница 430: ...416 CHAPTER 23 10 BIT A D CONVERTER ...
Страница 476: ...462 CHAPTER 24 LCD CONTROLLER ...
Страница 482: ...468 CHAPTER 25 LOW VOLTAGE DETECTION RESET CIRCUIT ...
Страница 494: ...480 CHAPTER 26 CLOCK SUPERVISOR ...
Страница 507: ...493 CHAPTER 27 REAL TIME CLOCK ...
Страница 523: ...509 CHAPTER 27 REAL TIME CLOCK ...
Страница 532: ...518 CHAPTER 27 REAL TIME CLOCK ...
Страница 536: ...522 CHAPTER 28 256 KBIT FLASH MEMORY ...
Страница 554: ...540 CHAPTER 28 256 KBIT FLASH MEMORY ...
Страница 564: ...550 CHAPTER 29 EXAMPLE OF SERIAL PROGRAMMING CONNECTION ...
Страница 595: ...581 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 596: ...582 INDEX Index ...
Страница 597: ...583 INDEX ...
Страница 599: ...585 Pin Function Index V2 LCD power supply driving pin 2 439 V3 LCD power supply driving pin 3 439 ...
Страница 600: ...586 Pin Function Index ...
Страница 602: ......