to record’s elements
to each element of record the translator (assembly) puts in correspondence (assigns) a numeric value, which is equal to a number of shifts to the right;
the shift to the right is performed with help of instruction shr ;
with help of operator width it is possible to determine a size of element (or the record as a whole) in bits. There are the next variants of using this operator
width name_of_record’s_element – the meaning of this operator will be a size of the element in bits;
width name_of_record’s_examplar
or
width name_of_record’s_type
the Assembly has an operator mask, which allows to localize bits of record’s element;
all operations, concerned with transformation record’s elements are executed with help of logical instructions.
Addressing a specific field in a record is reduced to working with a separate register.
How is the Record bit-field addressed in assembler?