273
APPENDIX B Overview of Instructions
●
Relative addressing
Relative addressing is indicated by rel in the instruction list. This addressing is used to branch to within the
area between the address 128 bytes higher and that 128 bytes lower relative to the address contained in the
PC (program counter). In this addressing mode, the result of a signed addition of the contents of the
operand to the PC is stored in the PC. Figure B.2-9 "Example of relative addressing" shows an example.
Figure B.2-9 Example of relative addressing
In this example, a branch to the address of the BNE operation code occurs, thus resulting in an infinite
loop.
●
Inherent addressing
Inherent addressing is indicated as the addressing without operands in the instruction list. This addressing is
used to perform the operation determined by the operation code. In this addressing mode, different
operations are performed via different instructions. Figure B.2-10 "Example of inherent addressing" shows
an example.
Figure B.2-10 Example of inherent addressing
9 A B A
H
BNE F EH
Current PC
9 A B C
H
Previous PC
9ABC
H
+ FFFE
H
9 A B D
H
NOP
9 A B C
H
Current PC
Previous PC
Summary of Contents for MB89950 Series
Page 2: ......
Page 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Page 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Page 236: ...222 CHAPTER 10 UART ...
Page 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Page 310: ...296 APPENDIX ...
Page 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 316: ...302 INDEX ...
Page 318: ......