Which segment is used by default for x86 indirect addressing?

I'm a little confused as to which segment is used when you have the x86 assembly, for example below (Intel syntax):

mov ax, [di]

I am sure that this will not be a code segment, I think it is a data segment or a stack? (Or is it the stack part of the data segment?)

+7
assembly x86
source share
1 answer

DS is the default, with the exception of indexing BP , then SS used. This exception is to facilitate the use of the stack frame ( ENTER / LEAVE instructions). String instructions also have specific segment usage.

+10
source share

All Articles