;***********************
;This program demonstrates the need for context saving
;Port A not used. Port B bit 0 used for ext.interrupt ip.
#include P16f84A.inc
;
rhi equ 10
rlo equ 11
phi equ 12
plo equ 13
qhi equ 14
qlo equ 15
org 00
goto start
org 04
goto Int_Routine
;
start org 0010
bsf INTCON,INTE ; enable external interrupt
bsf INTCON,GIE ; enable glabal int
loop movlw 99
movwf phi ; preload numebers to be load
movwf