encyclopegia.org

Negative flag

In a computer processor the negative flag or sign flag 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 two's complement interpretation of the result, the negative flag is set if the result was negative. For example, in an 8-bit signed number system, -37 will be represented as 1101 1011 in binary (the most significant bit, or sign bit, is 1), while +37 will be represented as 0010 0101 (the most significant bit is 0). The negative flag is set according to the result in the x86 series processors by the following instructions (referring to the Intel 80386 manual ): * All arithmetic operations except multiplication and division * Compare instruction – CMP (equivalent to subtract instructions without storing the result) * Logical instructions – XOR, AND, OR * TEST instruction (equivalent to AND instruction without storing the result) * Two's complement negation – NEG

In a computer processor the negative flag or sign flag 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 two's complement interpretation of the result, the negative flag is set if the result was negative. For example, in an 8-bit signed number system, -37 will be represented as 1101 1011 in binary (the most significant bit, or sign bit, is 1), while +37 will be represented as 0010 0101 (the most significant bit is 0). The negative flag is set according to the result in the x86 series processors by the following instructions (referring to the Intel 80386 manual ): All arithmetic operations except multiplication and division Compare instruction – CMP (equivalent to subtract instructions without storing the result) Logical instructions – XOR, AND, OR TEST instruction (equivalent to AND instruction without storing the result) Two's complement negation – NEG ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Negative flag." encyclopegia.org, 2025, https://encyclopegia.org/wiki/negative-flag. Accessed 24 November 2026.

Chicago

"Negative flag." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/negative-flag.

APA

encyclopegia.org. (2025). Negative flag. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/negative-flag

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

flag of the Faroe Islands

stub · references available

flag

stub · references available

flag of Staffordshire

stub · references available

flag of South Carolina

stub · references available

flag of North Carolina

stub · references available

flag of Oregon

stub · references available

flag of Japan

stub · references available

flag of Jerusalem

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1329379144 · 0.5 · snapshot enwiki-001329379144

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.