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
Your brother is starting 9th grade next year and is thinking about going to college. What step would you recommend he take?
postnew [5]
I would say D. Usually students aren't expected to fill out the FAFSA till junior or senior year, this is because it is based on household income which may change every year. Also, guidance counselor's can help students on the right track to go to classes. Clubs and/or sports teams look really good on college applications and are usually preferred by colleges. 
4 0
3 years ago
Someone help please!! i’ll give brainliest
Anni [7]

Answer:

1-Mouse

2-Display

3-Printer

4-Keyboard

Explanation:

6 0
3 years ago
Read 2 more answers
A tool you might use to manipulate an image, such as a photograph, into a seamless repeating texture would be:
nika2105 [10]

I believe the answer is D. I hope I helped :)

7 0
3 years ago
Read 2 more answers
You are tasked with setting up an employee’s computer.Instead of a new computer,she will be using a computer with an older opera
Rudiy27
A. A clean installation. 

A clean installation erases all the information on the drive and installs a fresh, new OS right off the boot device.
6 0
3 years ago
Read 2 more answers
What is the Matlab command to create a vector of the even whole numbers between 29 and 73?
Nana76 [90]

Answer:

x = 29:73;

x_even = x(2:2:end);

Explanation:

In order to create a vector in Matlab you can use colon notation:

x = j:k

where <em>j</em> is 29 and <em>k</em> is 73 in your case:

x = 29:73

Then you can extract the even numbers by extracting the numbers with even index (2,4,6,etc.) of your vector:

x_even = x(2:2:end);

In the line of code above, we define <em>x_even</em> as all the elements of x with even index from index 2 till the end index of your vector, and an increment of 2 in the index: 2,4,6,etc.

If you want the odd numbers, just use the odd indices of your vector:

x_odd = x(1:2:end);

where <em>x_odd</em> contains all the elements of <em>x</em> with odd index from index 1 till the end index, and an increment of 2: 1,3,5,etc.

6 0
3 years ago
Other questions:
  • Num = int(input("Enter a number: "))
    5·2 answers
  • A prime number is a number that is only evenly divisble by itself and 1.
    12·1 answer
  • The project started the development of inter-network connections using tcp/ip that has evolved into the internet today.
    5·1 answer
  • The analysis of how people relate to each other is known as?
    6·1 answer
  • Which component of the Hyper-V architecture controls all communication with the physical hardware on the computer?
    8·1 answer
  • What are the examples of shareware?
    9·2 answers
  • A constructor: A. always accepts two arguments B. has return type of void C. has the same name as the class D. always has an acc
    9·1 answer
  • Files exist on ____ storage devices, such as hard disks, dvds, usb drives, and reels of magnetic tape.
    11·1 answer
  • Identifying How to Print a Record on One Page
    5·1 answer
  • What is the advantage of using a translation look-aside buffer (TLB), also called associative memory, in the logical-physical ad
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!