x86 间接寻址中默认使用什么段? [英] What segment is used by default in x86 indirect addressing?

查看:70
本文介绍了x86 间接寻址中默认使用什么段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您拥有如下所示的 x86 程序集(英特尔语法)时,我对究竟使用了哪个段感到有些困惑:

I'm a little confused as to exactly what segment is used when you have x86 assembly like the below (Intel syntax):

移动斧头,[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 是默认的,除了 BP 索引然后 SS 是用过的.这个例外是为了简化堆栈帧的使用(ENTER/LEAVE 指令).字符串指令也有特定的段用法.

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.

这篇关于x86 间接寻址中默认使用什么段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆