I don't want to reinvent whats happing here. I have another project that is a boost circuit for led's using a 10f202 Micro PIC. code looks like Basic but I'm not sure. Here is a sample
movlw b'11111110' ; Initialise the Port, GP0 is O/p and others I/p
Tris GPIO
movlw b'00000110' ; Initialise the option Reg for wake up on pin change on GP3
option ; and set prescaler for 1:128.
clrf Present_key ; Clear the Temp Reg
clrf Key_Buffer ; Clear the Key Buffer Reg
bsf GPIO,0 ; Set GP0 output Port
clrf TMR0 ; Clear TMR0
btfsc STATUS,7 ; Wake from sleep on Pin Change and Goto 100% Intensity.
goto Key_Press_Check
Anyway just was curious if anybody knows