參數(shù)資料
型號: NSC800E
廠商: National Semiconductor Corporation
英文描述: NSC800TM High-Performance Low-Power CMOS Microprocessor
中文描述: NSC800TM高性能低功耗CMOS微處理器
文件頁數(shù): 26/76頁
文件大?。?/td> 785K
代理商: NSC800E
11.0 Addressing Modes
(Continued)
11.5 DIRECT ADDRESSING
Direct addressing is the most straightforward way of ad-
dressing supplies a location in the memory space. Direct
addressing, 16-bits of memory address information in two
bytes of data as part of the instruction. The memory address
could be either data, source of destination, or a location for
program execution, as in program control instructions.
Example:
Instruction: Jump to location X’0377
Mnemonic: JP
X’0377
Opcode:
1
1
0
0
0
0
1
1
D
Defines jump opcode
0
1
1
1
0
1
1
1
D
Constant X’0377
0
0
0
0
0
0
1
1
This instruction loads the Program Counter (PC) is loaded
with the constant in the second and third bytes of the in-
struction. The program counter contents are transferred via
direct addressing.
11.6 REGISTER INDIRECT
Next to direct addressing, register indirect addressing pro-
vides the second most straightforward means of addressing
memory. In register indirect addressing, a specified register
pair contains the address of the desired memory location.
The instruction references the register pair and the register
contents define the memory location of the operand.
Example:
Instruction: Add the contents of memory location X’0254 to
the A register. The HL register contains X’0254.
Mnemonic: ADD
A,(HL)
Opcode
1
0
0
0
0
1
1
0
This instruction uses implied addressing of the A and HL
registers and register indirect addressing to access the data
pointed to by the HL register.
11.7 INDEXED
The most flexible mode of memory addressing is the in-
dexed mode. This is similar to the register indirect mode of
addressing because one of the two index registers (IX or IY)
contains the base memory address. In addition, a byte of
data included in the instruction acts as a displacement to
the address in the index register.
Indexed addressing is particularly useful in dealing with lists
of data.
Example:
Instruction: Increment the data in memory location X’1020.
The IY register contains X’1000.
(IY
a
X’20)
Mnemonic: INC
Opcode:
TL/C/5171–54
The indexed addressing mode uses the contents of index
registers IX or IY along with the displacement to form a
pointer to memory.
11.8 RELATIVE
Certain instructions allow memory locations to be ad-
dressed as a position relative to the PC register. These in-
structions allow jumps to memory locations which are off-
sets around the program counter. The offset, together with
the current program location, is determined through a dis-
placement byte included in the instruction. The formation of
this displacement byte is explained more fully in the ‘‘In-
structions Set’’ section.
Example:
Instruction: Jump to a memory location 7 bytes beyond the
current location.
$
a
7
Opcode:
Mnemonic: JR
0
0
0
1
1
0
0
0
D
Defines relative jump
opcode
0
0
0
0
0
1
0
1
D
Displacement to be
applied to the PC
The program will continue at a location seven locations past
the current PC.
26
相關PDF資料
PDF描述
NSC800N NSC800TM High-Performance Low-Power CMOS Microprocessor
NSC800V NSC800TM High-Performance Low-Power CMOS Microprocessor
NSC858 NSC858 Universal Asynchronous Receiver/Transmitter
NSC858D NSC858 Universal Asynchronous Receiver/Transmitter
NSC858E NSC858 Universal Asynchronous Receiver/Transmitter
相關代理商/技術參數(shù)
參數(shù)描述
NSC800E-1/883 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microprocessor
NSC800E-1M 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microprocessor
NSC800E-3/883 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microprocessor
NSC800E-3M 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microprocessor
NSC800E-4 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microprocessor