//
//
 static void LP_DeepSleep(void) 
{ // Enclose all in-line assembly in its own function 
asm("MOV #0x8000, w2"); 
asm("MOV w2, DSCON"); 
asm("MOV w2, DSCON"); // Must repeat writes for GC family devices. 
asm("PWRSAV #0") 
}

// The following code is  non GC devices. //_DSCON = 1; //Sleep() } 
void LP_DeepSleepRelease(void) 
{ _RELEASE = 0; 
_RELEASE = 0; // Must repeat writes for GC family devices. }