The operand is in the memory, and its effective address is the sum of the contents of a base register (BX, BP) and an index register (SI, DI). The formula for calculating its effective address is shown in the formula.
When the segment override prefix is not used, it is stipulated that: if the effective address contains BP, the default segment register is SS; otherwise, the default segment register is DS.
Example: Assume the instruction: MOV BX, [BX+SI]. When it is executed, (DS)=1000H, (BX)=2100H, (SI)=0011H, and the content of memory unit 12111H is 1234H. What is the value of BX after the instruction is executed?
Solution: According to the rules of base plus index addressing mode, when executing this instruction, the effective address EA of the source operand is:
EA=(BX)+(SI)=2100H+0011H=2111H.
The physical address of the operand should be formed by the values of DS and EA, that is:
PA=(DS)*16+EA=1000H*16+2111H=12111H.
Therefore, the execution effect of this instruction is: transfer the value of a word starting from the physical address 12111H to BX.
The execution process is shown in the figure.
Previous article:Seven addressing modes (relative base address plus indexed addressing mode)
Next article:Seven addressing modes (register relative addressing mode)
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- RF and Microwave Passive Component Design Considerations and Limitations
- 【TI recommended course】#Lecture on basic knowledge of electronic circuits#
- Power PCB Layout Issues
- CC2640 serial port transceiver
- Navi10 Macro Keyboard with KB2040 and KMK CircuitPython Keyboard Firmware
- Gesture-Based Capacitive Touch Speaker Interface Reference Design
- Dear experts, please tell me! Why can't I debug the array or char* defined in CCS6? ? ?
- 【NXP Rapid IoT Review】+ Development Kit Demonstration and Hardware Familiarization
- EEWorld’s 15th Anniversary, Thanks to All of You! A Review of Those Unforgettable Little Happinesses~
- How to fill in the PCB footprint of Cadence device?