Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Read a 3 2 - bit unsigned value from SWITCHES ( address 0 x 1 1 0 0 0 0 0 0 ) . If

Read a 32-bit unsigned value from SWITCHES (address 0x11000000). If the input is greater than or equal to 32,768, the value is divided by 4. You can ignore any remainder. If the value is less than 32,768, the value is multiplied by 2. The result should be written to the 7 SEGMENT (address 0x11000040). I want to write the code in OTTER mcu language.
This is what I have so far:
lui x5,0x11110 #load switch register
li x6,32769 #load input into register
li x7,32768 #load comparison value
li x8,4 #load dividing value
li x9,2 #load multiplying value

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions