4.3 Manipulating Integers at the Bit Level

The instructions introduced so far in this chapter accessed integers at the byte or word level. The logical, shift, and rotate instructions described in this section, however, access the individual bits of the integers. You can use logical instructions to evaluate characters and do other text and screen operations. The shift and rotate instructions do similar tasks by shifting and rotating bits through registers. This section discusses some applications of these bit-level operations.