Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing ARM assembly code with the following instructions below! thank you! Consider a 9-story building with a basement. The first floor is

I need help writing ARM assembly code with the following instructions below! thank you!

Consider a 9-story building with a basement. The first floor is given the number 1, the second is given the number 2 and so on. The basement is given the number 0. You will write a program to simulate an elevator operated throughout the whole building. Write the following subroutines that will work with the main program

image text in transcribed

a) DELAY: generates a software delay of 1 second b) OPEN: displays a 'Door open' message on the screen after a delay of 1 second. A working version of this code is supplied for your use on the "Software Downloads page. c) CLOSE: displays a 'Door close' message on the screen after a delay of1 second d) UP: performs the following procedure i. Displays a 'Going UP' message on the screen. ii. Goes up one floor at a time (1 second delay between each floor), until the elevator reaches the destination iii. At each floor, prints that number (current floor number) on the screen. iv. After the elevator reaches the destination floor, stores this number as the current floor number in memory e) DOWN: performs the following procedure i. Displays a Going DOWN' message on the screen ii. Goes down one floor at a time (1 second delay between each floor), until the elevator reaches the destination. iii. At each floor, prints that number (current floor number) on the screen. iv. After the elevator reaches the destination floor, stores this number as the current floor number in memory f) STAY: displays a 'Same floor' message on the screen after a delay of 1 second a) DELAY: generates a software delay of 1 second b) OPEN: displays a 'Door open' message on the screen after a delay of 1 second. A working version of this code is supplied for your use on the "Software Downloads page. c) CLOSE: displays a 'Door close' message on the screen after a delay of1 second d) UP: performs the following procedure i. Displays a 'Going UP' message on the screen. ii. Goes up one floor at a time (1 second delay between each floor), until the elevator reaches the destination iii. At each floor, prints that number (current floor number) on the screen. iv. After the elevator reaches the destination floor, stores this number as the current floor number in memory e) DOWN: performs the following procedure i. Displays a Going DOWN' message on the screen ii. Goes down one floor at a time (1 second delay between each floor), until the elevator reaches the destination. iii. At each floor, prints that number (current floor number) on the screen. iv. After the elevator reaches the destination floor, stores this number as the current floor number in memory f) STAY: displays a 'Same floor' message on the screen after a delay of 1 second

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

Step: 3

blur-text-image

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

Students also viewed these Databases questions

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago