My way needs double ! I like to have a mask DB so that I can select which alarms are valid , or mask alarms out of a byte where they are not valid . This method doesn't care what data is in the alarm DB , a mixture of byte , bit and words , just so long as the mask and the storage DB are images of the alarm DB .