Hello, I need help with assembly language to check if INTIF is set or clear including initialisation of the variables.
If it is set, it needs to be cleared or reset.
banksel INTCON
btfss INTCON, INTF
goto NotRaised ;Flag is not raised, so go to a label called NotRaised
bcf INTCON, INTF
goto Raised ;Flag is raised, so go to a label called Raised. INTF has been cleared
What exactly do you mean by initialization of variables?