asm volatile("mov r25, %0" : "=r" (RunTsk)); Selects the incorrect register for the move.
-- Summary: Inline assembly uses wrong register Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pete at highdesertsoftware dot net GCC host triplet: Windows GCC target triplet: AVR (WinAVR) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34177