CW6.0 - RS08 - Memory Limitation?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CW6.0 - RS08 - Memory Limitation?

跳至解决方案
4,790 次查看
CS
Contributor I
I am programming an RS08 target in assembler.  I get an error "A1401 - Value Out Of Range" when my program exceeds 256bytes.  I've looked thru the manuals but can't find anything to help this.
 
I haven't used assembler in 20 years so I'm pretty sure I'm missing something but don't know what.  Any help is greatly appreciated.


--
Alban Edit: Please always include FSL Part Number in Message Subject line.



Message Edited by Alban on 2007-09-15 08:48 PM
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,447 次查看
Alban
Senior Contributor II
Hello CS,

This error means you have a change of PC which is longer than 128 bytes.
Open the help file in your CodeWarrior Installation and search for the error message.

C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.0\Help\ahc08_messages.chm

Description

The offset between the current PC and the label specified as 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 following instructions: Branch instructions BCC, BCS, BEQ, BHCC, BHCS, BHI, BHS, BIH, BIL, BLO, BLS, BMC, BMI, BMS, BNE, BPL, BRA, BRN, BSR

Third operand in following instructions: BRCLR, BRSET


Cheers,
Alban.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,447 次查看
CS
Contributor I
Forgot to add:  CW6.0
0 项奖励
回复
2,448 次查看
Alban
Senior Contributor II
Hello CS,

This error means you have a change of PC which is longer than 128 bytes.
Open the help file in your CodeWarrior Installation and search for the error message.

C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.0\Help\ahc08_messages.chm

Description

The offset between the current PC and the label specified as 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 following instructions: Branch instructions BCC, BCS, BEQ, BHCC, BHCS, BHI, BHS, BIH, BIL, BLO, BLS, BMC, BMI, BMS, BNE, BPL, BRA, BRN, BSR

Third operand in following instructions: BRCLR, BRSET


Cheers,
Alban.
0 项奖励
回复
2,447 次查看
CS
Contributor I
Hi Alban,
Thanks for the reply.  I was playing with the code and when I rerouted the routine calling all was good!!
Best Regards,
Chris
0 项奖励
回复