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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.