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
jekas [21]
4 years ago
14

Let’s use that simple branch instruction to do the following: Load the two words declared in the data statement shown to the rig

ht into registers, and then determine if either is ≥ 0. If either number is ≥ 0, print it out using syscall 1 (you do not have to include a leader of any sort). If a number is negative, do not print it out. End the program with a syscall 10. Note: you can declare words as either decimal or hexadecimal. SPIM understands both number systems. If only one number is printed out, which number is it?
Computers and Technology
1 answer:
mr Goodwill [35]4 years ago
6 0

It prints first number.

Second number is negative and its value is: -1744764930

<u>Explanation:</u>

Required code is below.

========================================================================

.data

  data1:   .word   0x0001ead7

  data2:   .word   0x9800fffe

.text

main:   # load first number in to register $a0

  lw $a0, data1

  # if number is positive print it out

  bgez $a0, print

  # load second number in to register $a0

second:   lw $a0, data2

  # if number is positive print it out

  bgez $a0, print

  # end program

  li $v0, 10

  syscall    

print:   # print the given number

  li $v0, 1

  syscall

  # go back to main program

  j second

You might be interested in
How do I cite a website?
Mila [183]

Last, First M. “Article Title.”Website Title. Website Publisher, Date Month Year Published. Web. Date Month Year Accessed.


3 0
4 years ago
Read 2 more answers
Which of the following is an example of a federal tax? A. Social Security tax B. Sales tax C. Property tax D. Transaction tax
Nastasia [14]
Property tax should be the correct answer
6 0
3 years ago
Anna is making a presentation on the top five most visited cities in her state. she wants to make sure that she does not put in
andrey2020 [161]
Outline View. This view shows only the text of all the slides in the presentation on the left pane, enabling Anna to see whether she has put too much information or not.  She can also directly edit the the text  and simultaneously see its effect on the slide.  
8 0
4 years ago
Read 2 more answers
How should you complete the code A - valid = false B- valid = true
JulsSmile [24]

Answer:

A. for an if-else statement in python, if the condition is false, The else statement is executed.

B. if the condition of the if-statement is true, the indented block of code is executed.

Explanation:

The if-statement is a conditional statement in programming for decision making. It is also known as branching as it makes decisions based on two paths. It comes with another keyword called 'else'.

The If-else statement makes a decision based on the output of a condition which is defined in the if-statement. If the condition is met, the code block just after the if-statement is executed, but the else-statement block is executed if otherwise.

8 0
3 years ago
Should spreadsheets be used to keep an address list for holiday cards?<br> YES<br> ONO<br> Hurry pls
kodGreya [7K]

Answer:

No

because spreadsheet is used for calculation not for writing address

5 0
2 years ago
Other questions:
  • A is the smallest unit of application data recognized bysystem software.
    12·1 answer
  • I need help making this table in html code I have some of chart done but idk where to go after the 6:30pm part
    13·1 answer
  • Which statement correctly explains why televisions became less bulky?
    6·1 answer
  • Which is most likely a presentation file?
    8·1 answer
  • Annalise received financial aid offers from two universities. Financial Analysis for Option A Costs per Year Financial Aid Packa
    8·2 answers
  • Which statement below is true about how the functions of the digestive and circulatory system are connected.
    7·1 answer
  • Through the use of computational thinking techniques, models and algorithms can be created. A(n) ___1___ can be created that rep
    12·2 answers
  • Create a python code with 5 circles, 5 polygons, 5 line commands, 2 for loops, and 1 global variable
    12·1 answer
  • Which web browser was created by Google?
    5·2 answers
  • What can help you estimate how much money you might get in
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!