Learning: flag register

Introduction: follow the shark constant teacher step by step to learn, after all, they are completely zero-based, not directly to the pursuit of the principle, he can get down just fine, if we can better understand the principles involved that


0 Identifier: is 1 when an overflow

I directly modify the current EAX register hexadecimal 0x7FFFFFFFF, because this is the sign bit int32 largest number, if it is 0x80000000, then the sign bit is 0, then it is negative, if it is negative, then certainly a positive number small

Then the current assembly instruction to modify add eax,0x1the hexadecimal number to 0x1 eax register data (corresponding to a feed 0x7FFFFFFF + 0x1 7 to 8 is then 0x80000000 is), then we had a single step,

Found 0 flag register to 1, and then to overflow


Register P: Parity flag, such as the data register eax hexadecimal is converted into binary number, wherein the number 1, if a number is even, then P is 1 if it is an odd number 1, then P is then 0

Guess you like

Origin www.cnblogs.com/zpchcbd/p/12040903.html