You are here

Multiple Flags in One Byte

6 February, 2015 - 17:31

Within assembly language programming and in many technical programs that control special devices; the use of a single byte to represent several flags is common. This is accomplished by having each one of the 8 bits that make up the byte represent a flag. Each bit has a value of either 1 or 0 and can represent true and false, on or of, yes or no, etc.