Knowledge (XXG)

Negative flag

Source 📝

33: 144:
is a single bit in a system status (flag) register used to indicate whether the result of the last mathematical operation produced a value in which the most significant bit (the left most bit) was set. In a
116: 54: 50: 152:
For example, in an 8-bit signed number system, -37 will be represented as 1101 1011 in binary (the most significant bit, or
97: 69: 218: 76: 43: 83: 133: 180: 65: 146: 160: 90: 200: 174:
compare instructions (equivalent to subtract instructions without storing the result);
212: 156:, is 1), while +37 will be represented as 0010 0101 (the most significant bit is 0). 149:
interpretation of the result, the negative flag is set if the result was negative.
164: 32: 183:
instructions (equivalent to AND instructions without storing the result).
153: 130: 17: 163:
series processors by the following instructions (referring to the
26: 171:
All arithmetic operations except multiplication and division;
159:
The negative flag is set according to the result in the
57:. Unsourced material may be challenged and removed. 201:INTEL 80386. Programmer's Reference Manual 1986 8: 117:Learn how and when to remove this message 193: 7: 177:Logical instructions – XOR, AND, OR; 55:adding citations to reliable sources 25: 31: 42:needs additional citations for 1: 235: 51:improve this article 219:Computer arithmetic 127: 126: 119: 101: 16:(Redirected from 226: 203: 198: 147:two's complement 122: 115: 111: 108: 102: 100: 59: 35: 27: 21: 234: 233: 229: 228: 227: 225: 224: 223: 209: 208: 207: 206: 199: 195: 190: 123: 112: 106: 103: 66:"Negative flag" 60: 58: 48: 36: 23: 22: 15: 12: 11: 5: 232: 230: 222: 221: 211: 210: 205: 204: 192: 191: 189: 186: 185: 184: 178: 175: 172: 125: 124: 39: 37: 30: 24: 14: 13: 10: 9: 6: 4: 3: 2: 231: 220: 217: 216: 214: 202: 197: 194: 187: 182: 179: 176: 173: 170: 169: 168: 166: 162: 157: 155: 150: 148: 143: 139: 138:negative flag 135: 132: 121: 118: 110: 107:December 2009 99: 96: 92: 89: 85: 82: 78: 75: 71: 68: –  67: 63: 62:Find sources: 56: 52: 46: 45: 40:This article 38: 34: 29: 28: 19: 196: 158: 151: 141: 137: 128: 113: 104: 94: 87: 80: 73: 61: 49:Please help 44:verification 41: 165:Intel 80386 188:References 167:manual): 77:newspapers 142:sign flag 134:processor 18:Sign flag 213:Category 154:sign bit 131:computer 91:scholar 93:  86:  79:  72:  64:  129:In a 98:JSTOR 84:books 181:TEST 136:the 70:news 161:x86 140:or 53:by 215:: 120:) 114:( 109:) 105:( 95:· 88:· 81:· 74:· 47:. 20:)

Index

Sign flag

verification
improve this article
adding citations to reliable sources
"Negative flag"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
computer
processor
two's complement
sign bit
x86
Intel 80386
TEST
INTEL 80386. Programmer's Reference Manual 1986
Category
Computer arithmetic

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.