Write an Assembly program (using the EDU-CPU instruction set and Mikbil simulator) to do followings. Main program should run as an endless loop. In the loop, program should firstly read the switches...


Write an Assembly program (using the EDU-CPU instruction set and Mikbil simulator) to do followings.<br>Main program should run as an endless loop.<br>In the loop, program should firstly read the switches from the PIA.A port.<br>Then, program should perform the LED applications on the PIA.B port.<br>While program is running, the user will control the LED application type to be performed, by<br>manually turning the leftmost switch (SW7) ON / OFF.<br>Program should check ONLY the SW7 switch, it should ignore other switches by filtering them.<br>When program starts running, it should perform the APPLICATION1 (default application) as<br>described below.<br>If user turns the SW7 switch ON, then program should perform the APPLICATION2 as described<br>below.<br>The user can re-select APPLICATION1 or APPLICATION2 at any time.<br>In order to stop the program, the user will click the Stop button of simulator.<br>LED APPLICATION TYPES<br>Program should implement two LED application types.<br>The followings are the examples of LED sequences.<br>Beginning from the first step (Step1), program should display a LED sequence one step at-a-time.<br>The WAIT subroutine should be called after displaying a LED sequence at each step.<br>After the last step, program should go back to the first step again.<br>

Extracted text: Write an Assembly program (using the EDU-CPU instruction set and Mikbil simulator) to do followings. Main program should run as an endless loop. In the loop, program should firstly read the switches from the PIA.A port. Then, program should perform the LED applications on the PIA.B port. While program is running, the user will control the LED application type to be performed, by manually turning the leftmost switch (SW7) ON / OFF. Program should check ONLY the SW7 switch, it should ignore other switches by filtering them. When program starts running, it should perform the APPLICATION1 (default application) as described below. If user turns the SW7 switch ON, then program should perform the APPLICATION2 as described below. The user can re-select APPLICATION1 or APPLICATION2 at any time. In order to stop the program, the user will click the Stop button of simulator. LED APPLICATION TYPES Program should implement two LED application types. The followings are the examples of LED sequences. Beginning from the first step (Step1), program should display a LED sequence one step at-a-time. The WAIT subroutine should be called after displaying a LED sequence at each step. After the last step, program should go back to the first step again.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here