16位处理器、内存寻址和内存单元
假设该处理器的累加器寄存器是16位的,那么现在我们可以将该处理器称为16位处理器,即该处理器支持16位寻址。
现在我的问题是我们如何计算可以通过 16 位寻址来寻址的存储单元的数量? 根据我的计算,2的16次方变为65055,这意味着内存现在有65055个单元,如果我们采用1KB=1000字节,那么这将变成65055/1000=65.055,这意味着65 KB内存可以与具有16个单元的处理器一起使用位寻址。 现在,如果我们取 1KB=1024 字节,则变为 65055/1024=63.5 ,这意味着该处理器可以使用 63 KB 内存,但人们说可以使用 64 KB 内存。
现在告诉我我是对还是错,为什么我错了为什么人们说 64kb 内存可以与具有 16 位寻址的处理器一起使用?
Suppose the accumulater register of the processor is of 16 bit , now we can call this processor as 16 bit processor, that is this processor supports 16 bit addressing.
now my question is how we can calculate the number of memory cells that can be addressed by 16 bit addressing?
according to my calculation 2 to the power 16 becomes 65055 it means the memory have 65055 cells now if we take 1KB=1000 Bytes then this becomes 65055/1000=65.055 now this means that 65 kilo bytes memory can be used with the processor having 16 bit addressing.
now if we take 1KB=1024 Bytes then this becomes 65055/1024=63.5 ,it means that 63 kilo bytes memory can be used with this processor, but people say that 64 kilo bytes memory can be used.
Now tell me am i right or wrong and why i am wrong why people say that 64kb memory can be used with the processor having 16 bit addressing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
2的16次方就是65536
1KB就是1024字节
65536/1024=64K
2 to the power 16 is 65536
1KB is 1024 bytes
65536/1024=64K
2 的 16 次方等于 65536。除以 1024 得到 64K。
2 to the power 16 equals to 65536. Divided by 1024 gives us 64K.
2 的 16 次方是 65536,而不是 65055。1KB 是 1000 字节,因此 65536 / 1KB 是 65.536,即 65 KB,所以这在技术上是正确的,但程序员在说 KB 时通常指的是 1024 字节。 http://en.wikipedia.org/wiki/Kilobyte
65536/1024 = 64.0
2 to the power of 16 is 65536, not 65055. And 1KB is 1000 Bytes, so 65536 / 1KB is 65.536 is 65 KB, so that' technically correct, but programmers usually mean 1024 Bytes when they say KB. http://en.wikipedia.org/wiki/Kilobyte
65536/1024 = 64.0