I'm a little confused as to exactly what segment is used when you have x86 assembly like the below (Intel syntax):
mov ax, [di]
I'm pretty certain it wouldn't be the code segment, I'm thinking either the data segment or the stack? (Or is the stack part of the data segment?)
DS is the default, except with BP indexing then SS is used. This exception is to ease the use of a stack frame (ENTER/LEAVE instructions). The string instructions have specific segment usage as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With