Motorola HC12 User Manual

Page of 328
User’s Manual
MCUez HC12 Assembler
296
Assembler Messages
MOTOROLA
Assembler Messages
12.3.57  A12105: Immediate Address Mode not Allowed
Type:
Error
Description:
The immediate addressing mode is not allowed at that position.
Usually, this message is generated when the first operand
specified in a BCLR, BSET, BRCLR, or BRSET instruction is
preceded by the immediate character (#).
Example:
maskValue: EQU $40
         BSCT
var:     DS.B 1
CodeSec: SECTION
entry:
         LDD   #4567
         BRCLR #var, #maskValue, endCode
         …
endCode:
         END
Tip:
Remove the unexpected (#) character.
Example:
maskValue: EQU $40
         BSCT
var:     DS.B 1
CodeSec: SECTION
entry:
         LDD   #4567
         BRCLR var, #maskValue, endCode
         …
endCode:
         END