Can anyone please help regarding the code for the below specifications
Write an assembler program for QwikFlash board and debug it to have the following functions:
The QwikFlash Port pins RA1, RA2, and RA3 will be outputs for LED indicators.
Pins RD0 and RD1 will be inputs for two switches pushed by two players who compete for pushing faster when the fire LED (RA2) is turned on.
Game will start with a reset. After the reset button is pushed and released, program will turn off all LEDs, and wait a random amount of time between 2 and 10 seconds.
During this waiting period, if a player push its button (RD0 or RD1) then the program will turn on both the LEDs RA1+RA2 for RD0, and both RA2 and RA3 for RD1.
When the waiting period is over, program will turn on RA2. After this instant, the program will test the inputs RD0 and RD1. With the first button pressed, the program will turn off RA2, and turn on either RA1 (if RD0 is pressed) or RA3 (if RD1 is pressed).
After turning on RA0 or RA2, it will wait in an endless loop forever (until power off, or a player resets the circuit).
Write an assembler program for QwikFlash board and debug it to have the following functions:
The QwikFlash Port pins RA1, RA2, and RA3 will be outputs for LED indicators.
Pins RD0 and RD1 will be inputs for two switches pushed by two players who compete for pushing faster when the fire LED (RA2) is turned on.
Game will start with a reset. After the reset button is pushed and released, program will turn off all LEDs, and wait a random amount of time between 2 and 10 seconds.
During this waiting period, if a player push its button (RD0 or RD1) then the program will turn on both the LEDs RA1+RA2 for RD0, and both RA2 and RA3 for RD1.
When the waiting period is over, program will turn on RA2. After this instant, the program will test the inputs RD0 and RD1. With the first button pressed, the program will turn off RA2, and turn on either RA1 (if RD0 is pressed) or RA3 (if RD1 is pressed).
After turning on RA0 or RA2, it will wait in an endless loop forever (until power off, or a player resets the circuit).