From: <kozzyamadeus@ymail.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Monday, June 15, 2009 10:53 PM
Subject: [AVR-Chat] asm in Crossworks
> Hi all,
> Is there a way to mix asm instructions with C code on Crossworks for AVR?
> Tried asm("..."); but not works.
>
Their MSP430 compiler doesn't support in-line assembler, but has a compiler
intrinisic _OPC which inserts a word into the instruction stream:
#include <in430.h>
_OPC(0x4302); // mov.w #0, sr
There is probably something similar for the AVR compiler.
Leon