|ARM Technical Support Knowledge Articles|
Applies to: AX51 Macro Assembler
Information in this knowledgebase article applies to:
I am getting an Error A14: Bad Relocatable Expression on the following code.
extern number (value) : mov A,#0 - value
Is it not possible to use subtraction with program symbols.
There are several restrictions with relocatable symbols. You can only subtract two relocatable symbols when the belong to the same segment. These symbols must be defined within the program module so that the assembler can calculate the offset of this symbols as absolute number.
As a solution to your problem you may define the negative number in the module that defines the symbol value in the above example.
Request the files attached to this knowledgebase article.
Article last edited on: 2009-11-19 01:19:12
Did you find this article helpful? Yes No
How can we improve this article?