حساب کاربری
​
زمان تقریبی مطالعه: 1 دقیقه
لینک کوتاه

ثبات وضعیت

رجیستر وضعیت یک رجیستر وضعیت یا رجیستر "کری فلاگ"، عبارت است از مجموعه ای از " فلاگ:به یک یا چند بیت که دارای ارزش باینری باشد بیت" های یک پردازنده.

FlagNameDescription
ZZero flagنشان می دهد که نتیجه یک عملیات محاسباتی یا منطقی صفر است.
CCarry flagEnables numbers larger than a single word to be added/subtracted by carrying a binary digit from a less significant word to the least significant bit of a more significant word as needed. It is also used to extend bit shifts and rotates in a similar manner on many processors (sometimes done via a dedicated X flag).
S / NSign flag / Negative flagIndicates that the result of a mathematical operation is negative. In some processors,[1] the N and S flags are distinct with different meanings and usage: One indicates whether the last result was negative whereas the other indicates whether a subtraction or addition has taken place.
V / O / WOverflow flagنشان می دهد که نتیجه یک عملیات بزرگ تر از آن است که در یک بیت جای گیرد
PParity flagIndicates whether the number of set bits of the last result is odd or even.

جستارهای وابسته

  • بیت فیلد
آخرین نظرات
کلیه حقوق این تارنما متعلق به فرا دانشنامه ویکی بین است.