nobo...@web.de wrote:
i've got assembler code for iar and tried to compile with mspgcc but i can't 
port some lines:

ASEG    0FC00h   ; for start address 0xfc00

do you realy need to set it on an absolute address?
usualy just using
.text
is enough, the linker will move the code to somewhere in the available flash

otherwise try that:
http://sources.redhat.com/binutils/docs-2.15/as/Org.html#Org

mov.b   #80h,&BCSCTL2   ; MCLK=DCOCLK/1, SMCLK=DCOCLK/1

mov     #Calibr-$-6,R5       ; see below: Calibr: clr     R12             ; 
TimerA clear and start count up

does "$" work? if not: http://sources.redhat.com/binutils/docs-2.15/as/Dot.html#Dot


assembler docs are here: http://sources.redhat.com/binutils/docs-2.15/as/index.html

Any ideas?

By the way: In the listing file i can see that compilation places a
nop after every dint. In a c file there is no need to set a nop after a
dint.

the MCU does not care in which source language the program was written. ;-)
it will delay the effect of dint by one instruction, thus a nop has to be used to be sure that ints are locked.

chris

Reply via email to