blueroomelectronics
Well-Known Member
Where in an Interrupt should you disable the GIE bit?
(or do you have to?)
(or do you have to?)
Code:
org 0x004 ;IRQ routines
Push bcf INTCON, GIE ;Bx
movwf W_Stack ;Bx given multiple banks, and no global memory
swapf STATUS,W ;Bx The swapf instruction, unlike the movf, affects NO status bits, which is why it is used here.
clrf STATUS ;Bx point to bank 0 and clear all the flags