Maybe I'm not seeing the big picture . . .
Code:
SLEEP_IT: 'use asm code for sleep as pbp has a fixed period
<font color=red>GPIO = %00000000</font color>
pause 1000
INTCON.0 = 0 'clear interrupt flag if set (GPIO should do this)
@ sleep
@ nop
goto start
in your sub routine you command all GPIOs as outputs, how will it receive
the wake up?