A13110: Bit number expected

[ERROR]

Description

When using the instruction BSET, BCLR, BRSET and BRCLR, this error message is issued if the specified value for the bit number is not a Direct or an Extended.

Example
  MyData: SECTION SHORT

  data:   DS.B 1

  MyCode: SECTION

  entry:

          BCLR  #$7, data

          BRCLR #$4, data, entry

          BRSET #$3, data, entry

          BSET  #$2, data
  
Tips

Use a correct value for the bit number: 0, 1, 2, 3, 4, 5, 6, 7

  MyData: SECTION SHORT

  data:   DS.B 1

  MyCode: SECTION

  entry:

          BCLR  7, data

          BRCLR 4, data, entry

          BSET  3, data

          BRSET 2, data, entry