简体   繁体   English

CPU如何区分REP和REPE指令?

[英]How does CPU differentiate REP and REPE instructions?

According to this manual, REP and REPE instructions have different behaviour, but the same opcode F3 . 根据手册, REPREPE指令具有不同的行为,但操作码F3相同。

How does CPU differentiate this two commands, if they both have the same opcode? 如果两个命令都具有相同的操作码,CPU如何区分这两个命令?

REP and REPE are prefixes , not instructions. REPREPE前缀 ,而不是指令。 Some instructions accept the REPE prefix. 一些指令接受REPE前缀。 Others accept REP . 其他人接受REP The ISA was designed so that no instruction accepts both, so the problem does not arise. ISA的设计使任何指令都不能接受两者,因此不会出现问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM