Which Addressing Mode is this? MOV DX, ES:[BX+6]?

  • Thread starter Thread starter kloong
  • Start date Start date
  • Tags Tags
    Dx Mode
AI Thread Summary
The discussion focuses on the segmented memory model of the 8086 assembly language, highlighting how segments can overlap. Specifically, addresses like A000:0000 and A001:0000 are not 64KB apart due to this overlap, which occurs every 16 bytes. The addressing modes mentioned include register addressing, immediate addressing, direct addressing, and register indirect mode, with a specific example provided for displacement combined with indirect addressing. The example illustrates how to access a 16-bit memory word using the instruction "mov dx, es:6[bx]," where the displacement can be either 8-bit or 16-bit. This reflects the complexity and versatility of addressing in 8086 assembly language.
kloong
Messages
35
Reaction score
0
For 8086 assembly language.
 
Technology news on Phys.org
This is known as the segmented model. In this model as far as I know segments overlap every so many bytes (i think its 16 or some power of it). So basically A000:0000 and A001:0000 are not 64Kb apart but actually overlap.
 
x:y = 16*x+y

Unless my memory fails me.
 
umm.. I am thinking if it's register addressing mode, immediate addressing mode, direct addressing mode, register indirect mode or others..
 
displacement + indirect (register)

it can also be written as

mov dx,es:6[bx]

where 6 could be an 8 bit or 16 bit displacement (offset).

operand = 16 bit memory word at address [es*16 + bx + 6]
 
Last edited:
Wow. I never knew there are combined ones. Ok, thank you very much. =)
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top