我是否正确阅读虚拟地址?

发布于 2025-02-13 13:07:19 字数 178 浏览 4 评论 0原文

为我提供了一个具有12位虚拟广告物理地址和256个字节页面的系统的页面表。

假设我得到了一个读取0x3e5的虚拟地址(十六进制)。

我是通过说第一个十六进制是在正确阅读的,在这种情况下,是页码和其他2个十六进制是偏移量吗?

这是因为页面尺寸为256 bytes,即2^8,这意味着8位适用于页面大小。

I have been given a page table for a system with 12-bit virtual ad physical addresses and 256-byte pages.

Say I am given an virtual address (in hexadecimal) that reads 0x3E5.

Am I reading this correctly by saying the first hexadecimal, in this case 3, is the page number and the other 2 hexadecimals are the offset?

This because the page sizes, 256-bytes, which is 2^8, meaning 8 bits are for the page size.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

池予 2025-02-20 13:07:19

是的,但是只有它是一个具有

Yes, but only if it is a system with byte addressing. Otherwise, you would divide the page size (256 bytes) by the word size to determine the number of addresses within a page, log2 of which would give you the number of page offset bits.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文