Seven addressing modes (register indirect addressing mode)

Publisher:快乐微笑Latest update time:2017-01-22 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The calculation method of the physical address of the register



indirect addressing mode is as follows: The principle of reading the storage unit in the register indirect addressing mode is shown in the figure.

When the segment override prefix is ​​not used, the following provisions apply:

If the effective address is specified by one of SI, DI and BX, the default segment register is DS;
if the effective address is specified by BP, the default segment register is SS (i.e., stack segment).

Example: Assume that there is an instruction: MOV BX, [DI]. When it is executed, (DS) = 1000H, (DI) = 2345H, and the content of the storage unit 12345H is 4354H. What is the value of BX after the instruction is executed?

Solution: According to the rules of the register indirect addressing mode, when executing this instruction, the value of register DI is not the operand, but the address of the operand. The physical address of the operand should be formed by the values ​​of DS and DI, that is: 

PA = (DS) * 16 + DI = 1000H * 16 + 2345H = 12345H.

Therefore, the execution effect of this instruction is: transfer the value of a word starting from the physical address 12345H to BX.

Its execution process is shown in the figure.


Reference address:Seven addressing modes (register indirect addressing mode)

Previous article:Seven addressing modes (register relative addressing mode)
Next article:Seven addressing modes (direct addressing mode)

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号