Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. 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

image text in transcribed

image text in transcribed

. 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. 1 APPLICATION2 APPLICATION1 (DEFAULT APPLICATION) Leftmost switch (SW7) is OFF. Leftmost switch (SW7) is ON. 1!!!!!! ooooooOFF Step LEDS Step LEDS Step LEDS 1 5 1 2 6 2 3 7 WAIT SUBROUTINE 4 8 Write a subroutine for the purpose of waiting times, and call it from the main program after each write operation to the SKELE.B of PIA (LEDs port). The looping counter should count from 1 to 40000 in the subroutine. 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions