间接地址中的操作数规范有多少位

发布于 2025-02-12 05:59:56 字数 369 浏览 0 评论 0原文

嘿^^希望有人可以在这里帮助我: 测试中的问题是以下(我必须翻译) CPU有16个通用寄存器,它处理数据和地址的长度为32位。 至少在特定地址模式的操作数规范中需要使用多少位:

我想使用的架构是负载/商店体系结构(是讲座的标准)

间接地址

因此,在组装中,它将像MOV EAX一样,[EBX] 它代表负载指令(如果我错了,请正确)

据我所知,

。 OP.D(目标寄存器)| Op.1 | OP.2

OP.D和OP.1/2是操作数规范

,因此对于16 GPR,我需要4位来解决它们,但是我需要4位用于拥有地址的EBX寄存器还是我需要32从一开始就可以地址?

Hey^^ hopefully someone can help me out here:
The question in a test is the following (I had to translate it)
A CPU has 16 General Purpose Registers, it handles data and addresses with a length of 32 bit.
How many bits need to be used at least for the operand specification for the specific addressing mode:

I guess that the architecture which is used is a LOAD/STORE Architecture (was the standard in the lecture)

indirect addressing

so in assembly it would be something like mov eax, [ebx]
which represents a LOAD instruction (correct me if im wrong)

As far as I know a machine instruction consists of:

OP.C OpCode | OP.D (Destination register) |OP.1 | OP.2

OP.D and OP.1/2 are the operand specification

So for the 16 GPR´s I would need 4 Bit to address them but do I need 4 bit for the ebx register which holds the address or do I need 32 bit for the address from the beginning?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文