64 a12401: value out of range –128, A12401: value out of range –128, Assembler messages – Motorola HC12 User Manual

Page 302

Advertising
background image

User’s Manual

MCUez HC12 Assembler

302

Assembler Messages

MOTOROLA

Assembler Messages

12.3.64 A12401: Value Out of Range –128...127

Type:

Error

Description:

The offset between the current PC and the label specified as the
PC relative address is not in the range of a signed byte (smaller
than –128 or bigger than 127). An 8-bit signed PC relative
offset is expected in the following instructions:

• Branch instructions:

BCC, BCS, BEQ, BGE, BGT, BHI, BHS, BLE, BLO, BLS,
BLT, BMI, BNE, BPL, BRA, BRN, BSR, BVC, BVS.

• Third operand in BRCLR and BRSET instructions

Example for branch instruction:

DataSec: SECTION

var1: DS.W 1

var2: DS.W 2

CodeSec: SECTION

LDD var1

BNE label

dummyBl: DCB.B 200, $A7

label STD var2

Tip:

If one of the branch instructions has been used, use the
corresponding long-branch instruction.

Example:

DataSec: SECTION

var1: DS.W 1

var2: DS.W 2

CodeSec: SECTION

LDD var1

LBNE label

dummyBl: DCB.B 200, $A7

label STD var2

Advertising