In MPLAB write and compile (using the simulator) anassembly language program withthe following functionality:
Configures pin RA2 of the PIC24to be an output to control anattached LED.
Configures pin RB13 of the PIC24 to be an input to read thevalue on an attached switch (this switch will connect to groundwhen pressed).
Configures pin RB13 to use the internal pull-up resistor.
After configuration, the LED will be \"off\" when the push-buttonis pressed, and \"on\" when it is released.
Remember, since this is an assembly language program you cannotuse the C-language macros. Also, that in an assembly languageprogram the name of a register is a reference to its memorylocation.