FUJITSU Semiconductor Controller MB89950/950A User Manual

Page 287

Advertising
background image

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

Advertising