The simplest way to access a certain bit within a larger variable is to directly use the bit offset (0 based;).