385
●
General-purpose Register Addressing
The addressing, which is indicated by Ri in the instructions list, is used for accessing the register bank of
the general-purpose register area. In this addressing, the higher one byte of the address is fixed to 01. The
lower one byte is generated from the contents of RP (register bank pointer) and the lower three bits of the
operation code. The address is then accessed.
Figure B.1-6 shows an example.
Figure B.1-6 Example of General-purpose Register Addressing
●
Immediate Addressing
The addressing, which is indicated by #d8 in the instructions list, is used when immediate data is required.
In this addressing, the operand directly becomes the immediate data. The specification of byte/word is
determined using the operation code.
Figure B.1-7 shows an example.
Figure B.1-7 Example of Immediate Addressing
●
Vector Addressing
The addressing, which is indicated by vct in the instructions list, is used for branching to a subroutine
registered in the table. In this addressing, the operation code includes the vct information, with the
addresses generated on the basis of the correspondence with the contents of Table B.1-1 .
0 1 5 6
MOV A, R 6
A B
H
A
A B
H
0 1 0 1 0
B
RP
H
MOV A, # 56
H
56
H
A
Table B.1-1 Vector Table Address Corresponding to vct
#vct
Vector table address (Jump destination, higher address:lower address)
0
FFCO
H
: FFC1
H
1
FFC2
H
: FFC3
H
2
FFC4
H
: FFC5
H
3
FFC6
H
: FFC7
H
4
FFC8
H
: FFC9
H
5
FFCA
H
: FFCB
H
6
FFCC
H
: FFCD
H
7
FFCE
H
: FFCF
H
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......