Hello all,

My setup:
--------------
OS:                                       Windows XP
MSPGCC installer release:        030506
MSPGCC version:                    3.2.3
GNU make version:                3.79.1
MCU:                                     MSP430F149


The assembler do not calculate properly the offset on an instruction that use 
PC relative addressing mode (i.e.: mov.b P1OUT, R11).

Here is a partial listing:

--------------------------------------------------------------------------------------------------------
  86 0000 5B40 1F00   mov.b P1OUT,r11
--------------------------------------------------------------------------------------------------------

P1OUT is defined as:
.EQU    P1OUT, 0x0021

The actual address of the instruction above is not yet known by the assembler, 
and, theorically,  it can not calculate the offset ( offset(PC) ) to put on the 
machine code, but, as you can see it put 1F00 (0x0021 - 0x0002).  Seem, that 
the assembler do not know that the address of the instruction is not the real 
address !?!?


Any idea about this problem?
Claude.

Reply via email to