Question: Write an assembly language program that chooses between two subroutines determined by the value at address 0x0000_6003 of real memory. If the value at address

Write an assembly language program that chooses between two subroutines determined by the value at address 0x0000_6003 of real memory.

If the value at address 0x0000_6003 is one, a subroutine that accomplishes SW #4 part 1 is run. If the value at address 0x0000_6003 is any other number other than 1, a subroutine that accomplishes SW #4 part 2 is run.

In addition, add the following to both SW #4 parts 1 and 2, a result of zero should be displayed on the 7 segment display and an error message should be displayed for a value divided by zero (how the error message is displayed is up to you).

Write an assembly language program that chooses between two subroutines determined by

Assignment: First, create a flowchart that will perform the following behavior. Then implement the flowchart with OTTER MCU assembly language using only the instructions in the OTTER assembly manual. Make sure your code is formatted properly including comments. Use the RARS simulator to ensure the program performs as desired. 1. Read a 16-bit unsigned value from SWITCHES (address 0x11000000). Divide the input by 3 and output the quotient (result) to 7 SEGMENT (address 0x11000040) and the remainder to LEDS (address 0x11000020). 2. Read two 16-bit unsigned values consecutively from SWITCHES (address 0x11000000). Divide the first value by the 2 nd and output the quotient (result) to 7 SEGMENT (address 0x11000040) and the remainder to LEDS (address 011000020)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!