Indirect - Intel 8XC251SA User Manual

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

8XC251SA, SB, SP, SQ USER'S MANUAL
Table 5-3. Addressing Modes for Data Instructions in the MCS
Address Range of
Mode
Register
00H
Immediate
Operand in Instruction
00H–7FH
Direct
SFRs
00H–FFH

Indirect

0000H–FFFFH
0000H–FFFFH
5.3.1.4
Indirect
In arithmetic and logical instructions that use indirect addressing, the source operand is always a
byte, and the destination is either the accumulator or a byte register (R0–R15). The source address
is a byte, word, or dword. The two architectures do indirect addressing via different registers:
MCS 251 architecture. Memory is indirectly addressed via word and dword registers:
— Word register (@WRj, j = 0, 2, 4, ..., 30). The 16-bit address in WRj can access
locations 00:0000H–00:FFFFH.
— Dword register (@DRk, k = 0, 4, 8, ..., 28, 56, and 60). The 24 least significant bits can
access the entire 16-Mbyte address space. The upper eight bits of DRk must be 0. If
you use DR60 as a general data pointer, be aware that DR60 is the extended stack
pointer register SPX.
MCS 51 architecture. Instructions use indirect addressing to access on-chip RAM, code
memory, and external data RAM. See the notes in section 5.3.1, "Data Addressing Modes,"
regarding the region of external data RAM that is addressed by instructions in the MCS 51
architecture.
— Byte register (@Ri, i = 1, 2). Registers R0 and R1 indirectly address on-chip memory
locations 00H–FFH and the lowest 256 bytes of external data RAM.
— 16-bit data pointer (@DPTR or @A+DPTR). The MOVC and MOVX instructions use
these indirect modes to access code memory and external data RAM.
— 16-bit program counter (@A+PC). The MOVC instruction uses this indirect mode to
access code memory.
5-6
Assembly Language
Operand
R0–R7
1FH
(Bank selected by PSW)
#data = #00H
dir8 = 00H
dir8 = 80H
@R0, @R1
@DPTR, @A+DPTR
@A+DPTR, @A+PC
Reference
#FFH
7FH
On-chip RAM
FFH
SFR address
or SFR mnemonic.
Accesses on-chip RAM or the
lowest 256 bytes of external
data memory (MOVX).
Accesses external data
memory (MOVX).
Accesses region FF: of code
memory (MOVC).
®
51 Architecture
Comments

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents