简体   繁体   English

Intel 8086处理器的标志寄存器中保留位和未定义位之间的差异

[英]difference between reserved bits and undefined bist in intel 8086 processor's flag register

In the 16-bit flags register of the intel 8086 processor there are 9 flags (each 1-bit, bit numbers 0,2,4,6,7,8,9,10,11 which we know them as ZF,OF,...) the bit numbers 1,3,5 are marked as"U" (undefined) and the bit numbers 12,13,14,15 are marked as "R" (reserved). 在Intel 8086处理器的16位标志寄存器中,有9个标志(每个1位,位号0、2、4、6、7、8、9、10、11,我们将其称为ZF,OF, ...)位编号1,3,5标记为“ U”(未定义),位编号12,13、14、15标记为“ R”(保留)。

My question is that what is the difference between reserved bits and the undefined bits in the intel 8086 processor? 我的问题是Intel 8086处理器中保留位和未定义位之间有什么区别?

Thanks 谢谢

Reserved almost always means "Reserved for future use", to allow Intel to add extensions in later CPUs. 保留几乎总是表示“保留以供将来使用”,以允许Intel在以后的CPU中添加扩展。

None of the flags are "undefined" - they are all either defined or reserved. 没有一个标志是“未定义的”-它们都是定义的或保留的。 What you've probably seen is a table describing how each instruction effects different flags, where the effect of a specific instruction on a specific flag may be undefined (even though that specific flag is not an undefined flag). 您可能已经看到了一张表,该表描述了每个指令如何影响不同的标志,其中特定指令对特定标志的影响可能是不确定的(即使该特定标志不是未定义的标志)。 An example of this is the IDIV instruction which leaves most of the defined flags (overflow, carry, etc) in an undefined state. IDIV指令就是一个例子,它使大多数已定义标志(溢出,进位等)处于未定义状态。

Reserved bits may be defined. 可以定义保留位。 Undefined bits never are. 未定义的位永远不会。 If a bit is "reserved", it is reserved for some specific purpose. 如果“保留”位,则出于某些特定目的保留该位。 If it's "undefined", then at that point no purpose for it was decided. 如果它是“未定义”,那么到那时还没有目的。

For example, if a bit sets a particular testing mode that users are never supposed to enable, the bit would be reserved but it wouldn't be undefined. 例如,如果某个位设置了用户永远不应该启用的特定测试模式,则该位将被保留,但不会被不确定。

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

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