Fri Jul 4 15:58:36 EDT 2014
RETFIE 1 restores:
It's ok to use the data stack and retain stacks as long as they are
balanced. Is the a register used? Doesn't look like.
Maybe INTCON is wrong. ion sets #x60
GIE/GIEH PEIE/GIEL TMR0IE INT0IE RBIE TMR0IF INT0IF RBIF
0 1 1 0 0 0 0 0
Also IPR1 and IPR2 get stored to. Check these.
Ok, setting all the desired bits independently and leaving the rest
alone fixes hung console.
Though there are things interfering with the timer updates. Probably
USB. Let's remove 'cli' and 'sti' from the main library and put them
in kernel files as part of configuration.