Terry Yager
Veteran Member
I'm learning (teaching myself) to program the i8080, and have a question re: the F(lag) register. Does anyone know for certain what the designation of the flag bits are? I'm using several different sources to learn from, but there seems to be some confusion among the various authors. Some sources refer to the (S)ign flag, which is "set" (to a 1) if the number (in A) is + (positive) and "reset" (to zero) if the number is - (negative). Other sources refer to a M(inus) flag, which is set if the A-reg. contains a -(negative) number, the complete opposite as the "S" flag. DDT, the CP/M debugger calls it an "M" flag (when you dump the registers). At least one book I have uses both definitions in different parts of the book. (It was co-authored by two different people...hmmmmnnn...). I'm just getting more and more confused the more I read.
--T
P.S. I found a manual for Processor Technology's SOL debugger, which refers to a S(ign) flag. (The plot thickens...)
--T
P.S. I found a manual for Processor Technology's SOL debugger, which refers to a S(ign) flag. (The plot thickens...)