MB95630H Series
614
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-1v0-E
APPENDIX A Instruction Overview
A.2 Special Instruction
Figure A.2-3 shows a summary of the instruction.
Figure A.2-3 MULU A
●
DIVU A
This instruction divides the 16-bit value in T by the unsigned 16-bit value in A, and stores the
16-bit result and the 16-bit remainder in A and T, respectively. When the value in A before
execution of instruction is "0", the Z flag becomes "1" to indicate zero-division is executed.
The instruction does not change other flags, and therefore care must be taken when a branch
may occur depending on the result of a division.
Figure A.2-4 shows a summary of the instruction.
Figure A.2-4 DIVU A
●
XCHW A, PC
This instruction swaps the contents of A and PC, resulting in a branch to the address contained
in A before execution of the instruction. After the instruction is executed, A becomes the
address that follows the address where the operation code of "XCHW A, PC" is stored. This
instruction is effective especially when it is used in the main routine to specify a table for use
in a subroutine.
Figure A.2-5 shows a summary of the instruction.
Figure A.2-5 XCHW A, PC
When this instruction is executed, the content of A reaches the same value as the address where
the following instruction is stored, rather than the address where operation code of this
instruction is stored. Therefore, in Figure A.2-5, the value "0x1235" stored in A corresponds to
the address where the following operation code of "XCHW A, PC" is stored. This is why
"0x1235" is stored instead of "0x1234".
0x12
3
4
A
T
0x1
8
60
A
T
(Before exec
u
ting)
(After exec
u
ting)
0x12
3
4
0x567
8
0x567
8
A
T
0x0004
A
T
(Before exec
u
ting)
(After exec
u
ting)
0x0DA
8
0x12
3
4
0x12
3
4
A
PC
0x12
3
5
A
PC
(Before exec
u
ting)
(After exec
u
ting)
0x567
8
0x567
8
Содержание MB95630H Series
Страница 2: ......
Страница 4: ......
Страница 8: ...iv ...
Страница 20: ...xvi ...
Страница 106: ...MB95630H Series 86 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 6 I O PORT 6 2 Configuration and Operations ...
Страница 282: ...MB95630H Series 262 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E CHAPTER 14 LIN UART 14 8 Notes on Using LIN UART ...
Страница 642: ...MB95630H Series 622 FUJITSU SEMICONDUCTOR LIMITED MN702 00009 1v0 E APPENDIX A Instruction Overview A 5 Instruction Map ...
Страница 644: ......