AX51: ERROR A14: IS SUBTRACTION IMPOSSIBLE?
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.
Last Reviewed: Thursday, November 19, 2009
of your data.