Why can't MOV have both operands as memory locations? [closed]

我是研究僧i 提交于 2019-11-26 09:14:07

问题


I read that MOV instruction cannot have memory locations for both its operands.

Like : MOV [0012H], [0016H] is not allowed.

Why so?

And can other instructions have memory locations for both its operands?


回答1:


It's was a design decision when they created the CPU. More addressing modes you have and more instructions, larger (in terms of number of bits required to represent instruction) the instructions get. And larger instruction take longer to fetch from memory.

In other words, x86's instruction set is not orthogonal. It is not necessarily bad, at least not now, that only very limited amount of assembly code is written.

Some other CPUs (for example MC680xx designed in same era) can do that.



来源:https://stackoverflow.com/questions/14510280/why-cant-mov-have-both-operands-as-memory-locations

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!