为什么微处理器8085中的CMP L和CMP M指令具有相同的OpCode BD?
cmp l 将累加器(a)内容与l寄存器进行比较。 cmp m 将累加器(a)内容与存储在存储位置中的8位数据进行比较。这完全是两个不同的操作,所以为什么对他们俩都有相同的opcode bd 。
PS:是的,我知道,如果它们执行相同的任务并且具有不同的名称以参考同一任务,则很少有指令具有相同的操作码。但是在这种情况下是什么?
CMP L compares Accumulator(A) contents with L register. CMP M compares Accumulator(A) contents with 8-bit data stored in the memory location as stored in H-L register pair. That's two different operations totally so why is there the same opcode BD for them both.
PS: Yeah I know that few Instructions have same opcode if they perform about the same task and have different names for referring to the same task. But what is it in this case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论