OneCompiler

Assembly

141

Assume you have a switch and an LED, the switch and LED are connected as shown. Write a program that turns the LED on if the switch is closed, and turns the LED off if the switch is not closed.
Use pic16f84A and MPLAB X IDE.