Negative flag

Negative flag

In 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 last mathematic operation resulted in a value whose most significant 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 is 1), while +37 will be represented as 0010 0101 (the most significant bit is 0).

The negative flag is changed in the x86 series processors by the following instructions (referring to the Intel 80386 manual [1]):

  • All arithmetic operations except multiplication and division;
  • compare instructions (equivalent to subtract instructions without storing the result);
  • Logical instructions - XOR, AND, OR;
  • TEST instructions (equivalent to AND instructions without storing the result).

References

  1. ^ http://www.intel.com/products/processor/manuals/index.htm

Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • negative flag — the letter N in the International Code of Signals, signifying no when flown by itself: a square flag having four rows of alternate blue and white squares. [1905 10] * * * …   Universalium

  • negative flag — the letter N in the International Code of Signals, signifying no when flown by itself: a square flag having four rows of alternate blue and white squares. [1905 10] …   Useful english dictionary

  • Flag byte — A flag byte is a generic term for a byte used to indicate conditions within a binary computer. In particular, the byte can be used to show up to 8 discrete conditions. Essentially, each bit represents one flag, capable of showing two states.… …   Wikipedia

  • Flag of Japan — Name Nisshōki[1] or Hinomaru[2] Use …   Wikipedia

  • Negative Approach — at St. Andrews Hall on July 31, 2010 Background information Origin Detroit, Michigan, United States …   Wikipedia

  • Negative — Datos generales Origen Tampere, Finlandia Información artística …   Wikipedia Español

  • Negative Zone Prison Alpha — Publication information Publisher Marvel Comics First appearance Civil War: Front Line #5 In story information …   Wikipedia

  • Negative — Negative …   Википедия

  • Negative liberty — Part of a series on Freedom Concepts …   Wikipedia

  • Negative volume index — Nearly 75 years have passed since Paul L. Dysart, Jr. invented the Negative Volume Index and Positive Volume Index indicators. The indicators remain useful to identify primary market trends and reversals. In 1936, Paul L. Dysart, Jr. began… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”