For some reason, if you put “bic.b #BIT2, &P1SEL” in your code then you will get an error at compile time. Apparently P1SEL is defined in a different header file. Just avoid this line, P1SEL is set to zero by default anyway.
Day: April 19, 2021
Problem 5 (Final)
The subroutine takes three inputs from the stack and places one output on the stack.