Assembler Messages
Message Codes
MCUez HC12 Assembler User’s Manual
MOTOROLA Assembler Messages 303
Example for BRCLR instruction:
DataSec: SECTION
var1: DS.W 100
CodeSec: SECTION
LDX #var1
BRCLR 3, X, #$05, label
dummyBl: DCB.B 200, $A7
label STD var2
Tip: If a BRSET or BRCLR has been used, replace the BRCLRinstruction with this code sequence:
LDAB <first operand in the BRCLR>
ANDB <second operand in BRCLR>
LBEQ <third operand in BRCLR>
Example:
DataSec: SECTION
var1: DS.W 1
var2: DS.W 2
CodeSec: SECTION
LDX #var1
LDAB 3, X
ANDB #$05
LBEQ label
dummyBl: DCB.B 200, $A7
label STD var2