Motorola HC12 Manuale Utente

Pagina di 328
Assembler Messages
Message Codes
MCUez HC12 Assembler
User’s Manual
MOTOROLA
Assembler Messages
253
12.3.8  A1103: Illegal Redefinition of Label
Type:
Error
Description:
The label specified in front of a comment, assembly
instruction, or directive is detected twice in a source file.
Example:
DataSec1: SECTION
label1: DS.W 2
label2: DS.L 2
CodeSec1: SECTION
Entry:  LDS #$4000
        LDX #label1
        CPX #$500
        BNE label2
label2: RTS
Tip:
Modify the label names so that labels are unique in each
assembly file.
Example:
DataSec1: SECTION
DataLab1: DS.W 2
DataLab2: DS.L 2
CodeSec1: SECTION
Entry:  LDS #$4000
        LDX #label1
        CPX #$500
        BNE label2
CodeLab2: RTS