IO register bit manipulation