MB89620 series
APPENDIX
277
APPENDIX
B Instructions
B.2
Special Instructions
This section describes special instructions, other than addressing.
l
JMP @A
This instruction moves the address contained in the accumulator (A) to the program counter
(PC) and branches to the new address. This instruction can be used to perform an N option
branch by placing N branch destination addresses in a table and moving the desired address to
the accumulator.
Figure B.2a shows an outline of the instruction operation.
Figure B.2a JMP @A
l
MOVW A, PC
This instruction stores the PC contents in the accumulator A. This performs the opposite
operation to “JMP @A”. By executing this instruction in the main routine and calling a particular
subroutine, the subroutine can determine whether the contents of A match a predetermined
value. The subroutine can check whether program runaway has occurred by checking whether
or not execution has branched from an expected location.
Figure B.2b shows an outline of the instruction operation.
Figure B.2b MOVW A, PC
The content of A after executing this instruction is the address of the next instruction (not the
address containing the operation code of this instruction). Accordingly, the value “1234
H
” stored
in A in the example shown in Figure B.2b is the address of the next operation code after
“MOVW A, PC”.
l
MULU A
This instruction performs an unsigned multiplication of AL (lower 8 bits of the accumulator) and
TL (lower 8 bits of the temporary accumulator) and stores the 16-bit result in A. The content of T
(temporary accumulator) does not change. The arithmetic operation does not use the pre-
execution contents of AH (upper 8 bits of the accumulator) and TH (upper 8 bits of the
temporary accumulator). Since the flags remain unchanged, use care when branching is
required based on the result of multiplication.
Figure B.2c shows an outline of the instruction operation.
Figure B.2c MULU A
1234
H
New PC
XXXX
H
Old PC
1234
H
A
1234
H
A
(Before execution)
(After execution)
1234
H
New PC
1234
H
Old PC
XXXX
H
A
1234
H
A
(Before execution)
(After execution)
1234
H
T
1234
H
T
5678
H
A
1860
H
A
(Before execution)
(After execution)
Содержание F2MC-8L MB89620 Series
Страница 8: ......
Страница 10: ...MB89620 series ...
Страница 11: ...vi MB89620 series ...
Страница 17: ...xii MB89620 series ...
Страница 18: ...xvi MB89620 series ...
Страница 30: ...MB89620 series CHAPTER 1 OVERVIEW 9 Memo ...
Страница 34: ...MB89620 series CHAPTER 1 OVERVIEW 13 Memo ...
Страница 42: ...MB89620 series CHAPTER 1 OVERVIEW 21 Memo ...
Страница 49: ...28 CHAPTER 1 OVERVIEW MB89620 series ...
Страница 62: ...MB89620 series CHAPTER 3 CPU 41 Memo ...
Страница 78: ...MB89620 series CHAPTER 3 CPU 57 Memo ...
Страница 82: ...MB89620 series CHAPTER 3 CPU 61 Memo ...
Страница 86: ...MB89620 series CHAPTER 3 CPU 65 Memo ...
Страница 90: ...MB89620 series CHAPTER 3 CPU 69 Memo ...
Страница 96: ...MB89620 series CHAPTER 3 CPU 75 Memo ...
Страница 122: ...MB89620 series CHAPTER 4 I O PORTS 101 Memo ...
Страница 144: ...MB89620 series CHAPTER 5 TIMEBASE TIMER 123 Memo ...
Страница 149: ...128 CHAPTER 5 TIMEBASE TIMER MB89620 series ...
Страница 157: ...136 CHAPTER 6 WATCHDOG TIMER MB89620 series ...
Страница 174: ...MB89620 series CHAPTER 7 8 BIT PWM TIMER 153 Memo ...
Страница 177: ...156 CHAPTER 7 8 BIT PWM TIMER MB89620 series ...
Страница 202: ...MB89620 series CHAPTER 9 16 BIT TIMER COUNTER 181 Memo ...
Страница 217: ...196 CHAPTER 9 16 BIT TIMER COUNTER MB89620 series ...
Страница 220: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 199 Memo ...
Страница 228: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 207 Memo ...
Страница 245: ...224 CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 MB89620 series ...
Страница 266: ...MB89620 series CHAPTER 13 A D CONVERTER 245 13 Memo ...
Страница 283: ...262 CHAPTER 13 A D CONVERTER MB89620 series ...
Страница 289: ...268 CHAPTER 14 CLOCK MONITOR FUNCTION MB89620 series ...
Страница 306: ...MB89620 series APPENDIX 285 APPEND Memo ...
Страница 319: ...298 APPENDIX MB89620 series Memo ...
Страница 321: ...2 ...
Страница 354: ......