Thread: Flag Question
View Single Post
Old Mar 10th, 2008, 7:12 PM   #2
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 548
Rep Power: 4 Benoit is on a distinguished road
Re: Flag Question

Flags are just a collection of bits that tell you different things about the current state of the processor. For example, if you do a byte addition and the result is greater than 255, then the carry flag will be set. The zero flag is also popular, to signify that the result of a computation is zero. The sign flag tells you if a number is interpreted as signed or unsigned. Most CPU's have atleast those three.
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote