Hi, > Also, there appears to be some suspect code generated at the end > of the isr to restore the W register. The save code is: > > MOVWF WSAVE > > but the restore code is: > > SWAPF WSAVE,F > SWAPF WSAVE,W > > Shouldn't the restore code be: > MOVF WSAVE, W
No, it should not. The restore sequence is from the datasheet (Example 12-1, DS41202F, page 109). MOVF would ruin STATUS<Z> ... I'll have to look deeper into the generated .asm stuff to analyse the "hang" you experience, which would be easier if you provided sources/assembly output. Raphael ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
