1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
maxonik [38]
3 years ago
13

Translate the following C program into an assembly program. The C program finds the minimal value of three signed integers. Assu

me a, b, and c is stored in register r0, r1, and r3, respectively. The result min is saved in register r4.
If (a< b && a min =a;
} else if (b min=b;
} else {
Min=c:
}
Computers and Technology
1 answer:
Gnoma [55]3 years ago
7 0

Answer:

  GLOBAL minRoutine

  AREA MYCODE, CODE, READONLY

  ENTRY

minRoutine

  MOV r0, #0xA  

  MOV r1, #0x3  

  MOV r3, #0x8  

  CMP r0,r1      

  BLT less1Routine      

  CMP r1,r0    

  BLT less2Routine      

  MOV r4,r3      

less1Routine              

CMP r0,r3      

  BLT cond1

less2Routine              

  CMP r1,r3    

  BLT cond2

 

cond1              

  MOV r4,r0      

cond2            

  MOV r4,r1      

  END

Explanation:

  • Inside the minRoutine, move the essential values to the r0, r1 and r3 registers.
  • Check if a is greater than b by comparing value in r0 with r1.
  • Jump to less1Routine, if value of r0 is less than value of r1. Otherwise go to next instruction .
  • Check if b is greater than a by comparing value in r1 with r0.
  • Jump to less2Routine, if value of r1 is less than value of r0. Otherwise go to next instruction .
  • Finally move result of r1 into r4 register.
You might be interested in
A media company that has separate, autonomous companies for movies, tv, internet, and print journalism is most likely a ________
Llana [10]
The answer that completes the blank provided above is the term DIVISIONAL. It is most likely that a divisional structure is being utilized when a media company comprises of a separate and autonomous companies for print journalism, tv, movies and the internet.
6 0
3 years ago
When my phone powers on does it take away 1 percent of battery?
ryzh [129]

Answer:

No, battery is based on your phone activity. Simply turning your phone on will not take away battery percentage.

7 0
2 years ago
Read 2 more answers
Complete the following sentences by choosing the best answer from the drop-down menus.
aleksandrvk [35]

Answer:

b. Application software

Explanation:

Applications are type of software that are installed in a specific operating system of a computer that deviates from those system software installed together with the system itself. These third-party applications are necessary for other functions such as entertainment, business, leisure and other needs addressing of which the system software can't provide.

Examples:

Microsoft Office Word, Excel, Powerpoint

i think i did that right:)

7 0
3 years ago
Output the following 21%4​
Vadim26 [7]
21%4 is 1.

21-4=17
17-4=13
13-4=9
9-4=5
5-4=1
4 0
3 years ago
A larger gear will produce more torque: true or false
aliina [53]
Power is force multiplied by velocity. The engine power is actually (relatively) constant regardless of the gear. So when people say there is "more power" in a lower gear, it's the common misconception that "more powerful" is "more forceful" but that's only part of the equation.

So if P is constant, then that means if you can combine a large force and a low velocity or a low force and large velocity for the same power.

When you put it in a low gear, you produce a large torque -- or a large force -- and a low velocity.

For example, if you are towing a trailer or trying to climb a very steep grade, you need the force to be large which is why you put it in a low gear. If you are on something slippery like snow or ice, a high gear will keep the force at the wheels low so the tires don't exceed the coefficient of friction and spin.
8 0
3 years ago
Other questions:
  • What is the difference between "call by value" and "call by reference"? Explain with example in c language.
    7·1 answer
  • How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th
    6·1 answer
  • You save $500 in a retirement account at age 25. it increases an average of 10% per year until you are 65. which formula and res
    13·1 answer
  • Routing connects different network segments and decides where __________are sent to
    7·1 answer
  • The material of this section assumes that search keys are unique. However, only small modifications are needed to allow the tech
    7·1 answer
  • 6 external parts of computer
    10·2 answers
  • What is motivation and state the two forms​
    14·1 answer
  • java Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins w
    11·1 answer
  • Hola, alguien aquí me podría ayudar dándome ideas a cerca de office (Word, PowerPoint o Excel) estoy desesperada no puedo pensar
    11·1 answer
  • What happened to China and India after they modernized their workforces by providing more training and education?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!