571
APPENDIX C Instruction Overview
C.4 F
2
MC-8FX Instructions
Table C.4-1 to Table C.4-4 show the instructions used by the F
2
MC-8FX.
■
Transfer Instructions
Table C.4-1 Transfer Instructions
No. MNEMONIC
~
#
Operation
TL TH AH N
Z
V
C
OPCODE
1
MOV
dir, A
3
2
(dir)
←
(A)
-
-
-
-
-
-
-
45
2
MOV
@IX + off, A
3
2
( (IX) + off)
←
(A)
-
-
-
-
-
-
-
46
3
MOV
ext, A
4
3
(ext)
←
(A)
-
-
-
-
-
-
-
61
4
MOV
@EP, A
2
1
( (EP) )
←
(A)
-
-
-
-
-
-
-
47
5
MOV
Ri, A
2
1
(Ri)
←
(A)
-
-
-
-
-
-
-
48 to 4F
6
MOV
A, #d8
2
2
(A)
←
d8
AL
-
-
+ + -
-
04
7
MOV
A, dir
3
2
(A)
←
(dir)
AL
-
-
+
+
-
-
05
8
MOV
A, @IX + off
3
2
(A)
←
( (IX) - off)
AL
-
-
+
+
-
-
06
9
MOV
A, ext
4
3
(A)
←
(ext)
AL
-
-
+
+
-
-
60
10 MOV
A, @A
2
1
(A)
←
( (A) )
AL
-
-
+
+
-
-
92
11 MOV
A, @EP
2
1
(A)
←
( (EP) )
AL
-
-
+
+
-
-
07
12 MOV
A, Ri
2
1
(A)
←
(Ri)
AL
-
-
-
+
-
-
08 to 0F
13 MOV
dir, #d8
4
3
(dir)
←
d8
-
-
-
-
-
-
-
85
14 MOV
@IX + off, #d8
4
3
( (IX) + off)
←
d8
-
-
-
-
-
-
-
86
15 MOV
@EP, #d8
3
2
( (EP) )
←
d8
-
-
-
-
-
-
-
87
16 MOV
Ri, #d8
3
2
(Ri)
←
d8
-
-
-
-
-
-
-
88 to 8F
17 MOVW
dir, A
4
2
(dir)
←
(AH) , (dir + 1)
←
(AL)
-
-
-
-
-
-
-
D5
18 MOVW
@IX + off, A
4
2
( (IX) + off)
←
(AH) , ( (IX) + off + 1)
←
(AL)
-
-
-
-
-
-
-
D6
19 MOVW
ext, A
5
3
(ext)
←
(AH) , (ext + 1)
←
(AL)
-
-
-
-
-
-
-
D4
20 MOVW
@EP, A
3
1
( (EP) )
←
(AH) , ( (EP) + 1)
←
(AL)
-
-
-
-
-
-
-
D7
21 MOVW
EP, A
1
1
(EP)
←
(A)
-
-
-
-
-
-
-
E3
22 MOVW
A, #d16
3
3
(A)
←
d16
AL AH dH
+ + -
-
E4
23 MOVW
A, dir
4
2
(AH)
←
(dir) , (AL)
←
(dir - 1)
AL AH dH
+
+
-
-
C5
24 MOVW
A, @IX + off
4
2
(AH)
←
( (IX) + off) , (AL)
←
( (IX) + off-1)
AL AH dH
-
+
-
-
C6
25 MOVW
A, ext
5
3
(AH)
←
(ext) , (AL)
←
(ext - 1)
AL AH dH
+
+
-
-
C4
26 MOVW
A, @A
3
1
(AH)
←
( (A) ) , (AL)
←
( (A) + 1)
AL AH dH
+
+
-
-
93
27 MOVW
A, @EP
3
1
(AH)
←
( (EP) ) , (AL)
←
( (EP) + 1)
AL AH dH
-
+
-
-
C7
28 MOVW
A, EP
1
1
(A)
←
(EP)
-
-
dH
-
-
-
-
F3
29 MOVW
EP, #d16
3
3
(EP)
←
d16
-
-
-
-
-
-
-
E7
30 MOVW
IX, A
1
1
(IX)
←
(A)
-
-
-
-
-
-
-
E2
31 MOVW
A, IX
1
1
(A)
←
(IX)
-
-
dH
-
-
-
-
F2
32 MOVW
SP, A
1
1
(SP)
←
(A)
-
-
-
-
-
-
-
E1
33 MOVW
A, SP
1
1
(A)
←
(SP)
-
-
dH
-
-
-
-
F1
34 MOV
@A, T
2
1
( (A) )
←
(T)
-
-
-
-
-
-
-
82
35 MOVW
@A, T
3
1
( (A) )
←
(TH) , ( (A) - 1)
←
(TL)
-
-
-
-
-
-
-
83
36 MOVW
IX, #d16
3
3
(IX)
←
d16
-
-
-
-
-
-
-
E6
37 MOVW
A, PS
1
1
(A)
←
(PS)
-
-
dH
-
-
-
-
70
38 MOVW
PS, A
1
1
(PS)
←
(A)
-
-
-
+
+
-
+
71
39 MOVW
SP, #d16
3
3
(SP)
←
d16
-
-
-
-
-
-
-
E5
40 SWAP
1
1
(AH)
←→
(AL)
-
-
AL
-
-
-
-
10
41 SETB
dir:b
4
2
(dir) : b
←
1
-
-
-
-
-
-
-
A8 to AF
42 CLRB
dir:b
4
2
(dir) : b
←
0
-
-
-
-
-
-
-
A0 to A7
43 XCH
A, T
1
1
(AL)
←→
(TL)
AL
-
-
-
-
-
-
42
44 XCHW
A, T
1
1
(A)
←→
(T)
AL AH dH
-
-
-
-
43
45 XCHW
A, EP
1
1
(A)
←→
(EP)
-
-
dH
-
-
-
-
F7
46 XCHW
A, IX
1
1
(A)
←→
(IX)
-
-
dH
-
-
-
-
F6
47 XCHW
A, SP
1
1
(A)
←→
(SP)
-
-
dH
-
-
-
-
F5
48 MOVW
A, PC
2
1
(A)
←
(PC)
-
-
dH
-
-
-
-
F0
Summary of Contents for F2 MC-8FX Family
Page 2: ......
Page 4: ......
Page 34: ...20 CHAPTER 1 DESCRIPTION ...
Page 38: ...24 CHAPTER 2 HANDLING DEVICES ...
Page 39: ...25 CHAPTER 3 MEMORY SPACE This chapter describes memory space 3 1 Memory Space 3 2 Memory Map ...
Page 56: ...42 CHAPTER 5 CPU ...
Page 73: ...59 CHAPTER 6 CLOCK CONTROLLER ...
Page 96: ...82 CHAPTER 6 CLOCK CONTROLLER ...
Page 104: ...90 CHAPTER 7 RESET ...
Page 105: ...91 CHAPTER 8 INTERRUPTS This chapter explains the interrupts 8 1 Interrupts ...
Page 174: ...160 CHAPTER 10 TIMEBASE TIMER ...
Page 184: ...170 CHAPTER 10 TIMEBASE TIMER ...
Page 218: ...204 CHAPTER 13 WATCH PRESCALER ...
Page 257: ...243 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Page 261: ...247 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Page 288: ...274 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Page 301: ...287 CHAPTER 17 16 BIT PPG TIMER ...
Page 316: ...302 CHAPTER 17 16 BIT PPG TIMER ...
Page 382: ...368 CHAPTER 21 UART SIO DEDICATED BAUD RATE GENERATOR ...
Page 390: ...376 CHAPTER 22 I2C ...
Page 395: ...381 CHAPTER 22 I2C ...
Page 399: ...385 CHAPTER 22 I2C ...
Page 430: ...416 CHAPTER 23 10 BIT A D CONVERTER ...
Page 476: ...462 CHAPTER 24 LCD CONTROLLER ...
Page 482: ...468 CHAPTER 25 LOW VOLTAGE DETECTION RESET CIRCUIT ...
Page 494: ...480 CHAPTER 26 CLOCK SUPERVISOR ...
Page 507: ...493 CHAPTER 27 REAL TIME CLOCK ...
Page 523: ...509 CHAPTER 27 REAL TIME CLOCK ...
Page 532: ...518 CHAPTER 27 REAL TIME CLOCK ...
Page 536: ...522 CHAPTER 28 256 KBIT FLASH MEMORY ...
Page 554: ...540 CHAPTER 28 256 KBIT FLASH MEMORY ...
Page 564: ...550 CHAPTER 29 EXAMPLE OF SERIAL PROGRAMMING CONNECTION ...
Page 595: ...581 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 596: ...582 INDEX Index ...
Page 597: ...583 INDEX ...
Page 600: ...586 Pin Function Index ...
Page 602: ......