On Tue, Apr 19, 2011 at 6:06 AM, JMGross <msp...@grossibaer.de> wrote: >> It's not being stupid; it's just doing what you told it to do. > > Well, not exactly. But it's what the compiler undestood. > I told to provide a target register and then use it as source > in the next instruction. > I didn't tell that this register variable needs to be stored in > a memory location.
But you (or somebody) did tell it the asm instruction was volatile, which may have had the effect of introducing a memory barrier. There are various chip errata involving LPM and ISRs and other actions, where the solution is to put a DINT after the BIS. See CPU24 through CPU29. They often seem to involve 20-bit operations. Peter ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users