Hauenstein Stefan wrote:

does anybody have a guide or description about the asm syntax?

The TI MSP430 Users Guide tells you a lot of the ASM instructions in general.

If I need pure ASM without __reset_vector I take the following template and compile it with something similar to msp430-gcc -g -O2 -mmcu=msp430x149 -D_GNU_ASSEMBLER_ -nostartfiles -nostandartlibs -Wall asm_file.S -o elf_file.elf
Then you start ASM coding similar to the IAR embedded workbench.


;#include <io.h>

;-----------------------------------------------------------------------------
;       main routine and main functions
;-----------------------------------------------------------------------------
        .section        .text

        .global main
        .type   main,@function
main:   jmp     main

ISR:
        reti

;-----------------------------------------------------------------------------
;       Interrupt Vectors
;-----------------------------------------------------------------------------
        .section        .vectors, "ax", @progbits
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   ISR
        .word   main

Ralf

Reply via email to