In computer processors the carry flag (usually indicated as the C flag) is a single bit in a system status (flag) register used to indicate when an arithmetic carry or borrow has been generated out of the most significant ALU bit position. The carry flag enables numbers larger than a single ALU width to be added/subtracted by carrying (adding) a binary digit from a partial addition/subtraction to the least significant bit position of a more significant word. It is also used to extend bit shifts and rotates in a similar manner on many processors (sometimes done via a dedicated X flag). For subtractive operations, two (opposite) conventions are employed as most machines sets the carry flag on borrow while some machines (such as the 6502 and the PIC) instead resets the carry flag on borrow (and vice versa).
Read more about Carry Flag: Uses, Carry Flag Vs. Borrow Flag
Famous quotes containing the words carry and/or flag:
“Love is the hardest thing in the world to write about. So simple. Youve got to catch it through details, like the early morning sunlight hitting the gray tin of the rain spout in front of her house. The ringing of a telephone that sounds like Beethovens Pastoral. A letter scribbled on her office stationery that you carry around in your pocket because it smells of all the lilacs in Ohio.”
—Billy Wilder (b. 1906)
“Up rose old Barbara Frietchie then,
Bowed with her fourscore years and ten;
Bravest of all in Frederick town,
She took up the flag the men hauled down;”
—John Greenleaf Whittier (18071892)