If you put a sleep command in using assembler then I'd reccomend putting a nop (no operation) on the next line, as the next line is executed after the sleep command, before the chip does actually sleep.
thanks, that's what I did do, other wise like, as you stated it goes to the next line. I had completely forgotten I could use assembly in C. I'm actually starting to like C instead of assembly, My brain dosen't hurt as much when doing maths. I've been rewriting some of my projects in C for practice.