3 a1051: zero division in expression, 4 a1052: right parenthesis expected, A1051: zero division in expression – Motorola HC12 User Manual

Page 249: A1052: right parenthesis expected

Advertising
background image

Assembler Messages

Message Codes

MCUez HC12 Assembler

User’s Manual

MOTOROLA

Assembler Messages

249

12.3.3 A1051: Zero Division in Expression

Type:

Error

Description:

A zero division is detected in an expression.

Example:

label: EQU 0;

label2: EQU $5000

...

LDX #(label2/label)

Tip:

Modify the expression or specify it in a conditional assembly
block.

Example:

label: EQU 0;

label2: EQU $5000

...

IFNE (label)

LDX #(label2/label)

ELSE

LDX #label2

ENDIF

12.3.4 A1052: Right Parenthesis Expected

Type:

Error

Description:

A right parenthesis is missing in an assembly expression or in
an expression containing the PAGE operator.

Example:

MyData: SECTION

variable: DS.B 1

label: EQU (2*4+6

label2: EQU PAGE (variable

Tip:

Insert the right parenthesis at the correct position.

Example:

MyData: SECTION

variable: DS.B 1

label: EQU (2*4)+6

label2: EQU PAGE(variable)

Advertising