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.
首頁 » Programming Fundamentals -A Modular Structured Approach using C++ » Test After Loops » Flag Concept
Multiple Flags in One Byte
- Front Matter
- Body Matter
- Back Matter