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
xz_007 [3.2K]
3 years ago
8

Given a high-level code you should be able to write the corresponding MIPS assembly code. Simple loop in C; A[ ] is an array of

ints do { g = g + A[i]; i = i + j; while (i != h) } Rewrite this as: Loop: g = g + A[i]; i = i + j; if (i != h) goto Loop; Using the mapping: g: $s1, h: $s2, i: $s3, j: $s4, base of A: $s5; write the corresponding assembly instructions
Computers and Technology
1 answer:
nevsk [136]3 years ago
4 0

Answer:

Explanation:

The code for the given problem is written below

.data

A : .word 1 2 3 4 5 6 7 8 9 10

.text

la $s5,A

li $s1,0 # load g

li $s2,10 # load h

li $s3,0 # load i

li $s4,1 # load j

loop:

mul $s6,$s3,4

add $s6,$s6,$s5 #address of A[i]

lw $s6,($s6) #get value of A[i] in s3

add $s1,$s1,$s6 #g = g+A[i]

add $s3,$s3,$s4 # i = i+j

bne $s3,$s2,loop #if i!=h jump to loop

You might be interested in
Body paragraphs in a report have a first-line indent of _____ inch. *
posledela

Answer:

.5

Explanation:

Im pretty sure its .5

4 0
3 years ago
How do you unblock sites on your computer
SashulF [63]

Answer:

you can't if it's a school computer you'd have to buy new parts for it

Explanation:

The FitnessGram Pacer Test is a multistage aerobic capacity test that progressively gets more difficult as it continues. The 20 meter pacer test will begin in 30 seconds. Line up at the start. The running speed starts slowly but gets faster each minute after you hear this signal *signal sound*. A sing lap should be completed every time you hear this sound. ding Remember to run in a straight line and run as long as possible. The second time you fail to complete a lap before the sound, your test is over. The test will begin on the word start. On your mark. Get ready!… Start.

4 0
2 years ago
Read 2 more answers
Which devices are managed through device management? Device management is the process of managing----(blank)-----devices.
Trava [24]

It is the process of managing the implementation and maintenance of physical and/or virtual devices. It has various administrative tools for the maintenance and upkeep of a computing, mobile, network, and virtual devices. When we talk about devices, we usually refer to the hardware devices such as computers, laptops, and more. Device management typically installs device and component-level drivers, configure a device so it performs as expected, and implement security measures and processes.

4 0
3 years ago
Roblox published a series of videos to help their audience use their creation engine, what are they called?​
FinnZ [79.3K]

Answer:

hey mann

Explanation:

it is known as "roblovdeo"

hope it helps

4 0
3 years ago
Read 2 more answers
BrainPower Tutoring The owner of BrainPower Tutoring needs an application to calculate and print estimates to provide to potenti
lozanna [386]

Answer:

a. You must specify whether the estimate will be sent directly to the printer or to a PrintPreview window.

Explanation:

Statement true about printing preview is you must specify whether the estimate will be sent directly to the printer or to a PrintPreview window.

5 0
3 years ago
Other questions:
  • Database designers typically do not add spaces in field names (LName), but can add details in the ________ field of the field pr
    9·1 answer
  • A simple algorithm for handling requests works like this:________ a) all requests users make are stored. b) The elevator priorit
    15·2 answers
  • Which of these protects against the most common attacks on the internet via a database of signatures, but at the same time actua
    9·1 answer
  • What are the advantages of homogenation
    5·1 answer
  • Suppose that an engineer excitedly runs up to you and claims that they've implemented an algorithm that can sort n elements (e.g
    5·1 answer
  • Operating software is a must in every software (a) True (b) False
    8·1 answer
  • Read the following sentences: “The Soviet Union’s famous launch of a satellite called Sputnik had been an embarrassment for the
    12·1 answer
  • Does anyone know how to fix this? Everytime i make a new page it only types in the middle of the page. I want to type at the top
    11·1 answer
  • What is the most vulnerable information that should be protected to prevent unauthorized access to your online files and records
    8·1 answer
  • Explain how a magnetic hard disk drive (HDD) operates.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!