11.3.3 Bit symbols

-

When a symbol that was defined with a bit position specifier in an .EQU directive is forward referenced, no error occurs but the result is not correct. Define the bit symbol before it is referenced in order to prevent forward reference.

Example

OFFSET   CODE                  NO  SOURCE STATEMENT
00000000                        1
00000000 22220007               2        .DB4    BSYM
00000004                        3  BSYM  .EQU    0x2222.7

-

Operation between bit symbols does not cause an error but the result is not correct. Do not write code for operation between bit symbols.

Example

OFFSET   CODE                  NO  SOURCE STATEMENT
00000000                        1
00000000                        2
00000000                        3  BSYM1 .EQU    0x2222.5
00000000                        4  BSYM2 .EQU    0x3333.7
00000000                        5
00000000 11110002               6        .DB4    BSYM2 - BSYM1