Direct Addressing; D.3 Direct Addressing - Fujitsu MB90480 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

D.3

Direct Addressing

An operand value, register, or address is specified explicitly in direct addressing mode.
Direct Addressing
● Immediate addressing (#imm)
Specify an operand value explicitly (#imm4/ #imm8/ #imm16/ #imm32).
MOVW A, #01212
Before execution
After execution
● Register direct addressing
Specify a register explicitly as an operand. Table D.3-1 lists the registers that can be specified. Figure D.3-2
shows an example of register direct addressing.
Table D.3-1 Direct Addressing Registers
General-purpose register
Special-purpose register
*: One of the user stack pointer (USP) and system stack pointer (SSP) is selected and used depending on
the value of the S flag bit in the condition code register (CCR). For branch instructions, the program
counter (PC) is not specified in an instruction operand but is specified implicitly.
Figure D.3-1 Example of Immediate Addressing (#imm)
(This instruction stores the operand value in A.)
H
A 2 2 3 3
A 4 4 5 5
Byte
Word
Long word
Accumulator
Pointer
Bank
Page
Control
4 4 5 5
1 2 1 2 (Some instructions transfer AL to AH.)
R0, R1, R2, R3, R4, R5, R6, R7
RW0, RW1, RW2, RW3, RW4, RW5, RW6,
RW7
RL0, RL1, RL2, RL3
A, AL
*
SP
PCB, DTB, USB, SSB, ADB
DPR
PS, CCR, RP, ILM
APPENDIX D Instructions
595

Advertisement

Table of Contents
loading

Table of Contents